- Timestamp:
- Jul 23, 2006 2:38:49 PM (18 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 3 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/configure
r468 r624 12 12 elif echo $MACHINE | grep i.86 > /dev/null; then 13 13 MACHINE_NAME=i386 14 elif echo $MACHINE | grep x86_64 > /dev/null; then 15 MACHINE_NAME=x86_64 14 16 elif echo $MACHINE | grep alpha > /dev/null; then 15 17 MACHINE_NAME=alpha -
pjproject/trunk/pjlib/include/pj/config.h
r433 r624 66 66 #if defined (PJ_M_I386) && PJ_M_I386 != 0 67 67 # include <pj/compat/m_i386.h> 68 #elif defined (PJ_M_X86_64) && PJ_M_X86_64 != 0 69 # include <pj/compat/m_x86_64.h> 68 70 #elif defined (PJ_M_M68K) && PJ_M_M68K != 0 69 71 # include <pj/compat/m_m68k.h> -
pjproject/trunk/pjlib/src/pj/ioqueue_common_abs.c
r610 r624 209 209 { 210 210 int value; 211 socklen_t vallen = sizeof(value);211 int vallen = sizeof(value); 212 212 int gs_rc = pj_sock_getsockopt(h->fd, SOL_SOCKET, SO_ERROR, 213 213 &value, &vallen); … … 529 529 #if (defined(PJ_HAS_SO_ERROR) && PJ_HAS_SO_ERROR!=0) 530 530 int value; 531 socklen_t vallen = sizeof(value);531 int vallen = sizeof(value); 532 532 int gs_rc = pj_sock_getsockopt(h->fd, SOL_SOCKET, SO_ERROR, 533 533 &value, &vallen); -
pjproject/trunk/pjlib/src/pj/pool_caching.c
r594 r624 176 176 177 177 /* Mark factory data */ 178 pool->factory_data = (void*) idx;178 pool->factory_data = (void*) (long) idx; 179 179 180 180 /* Increment used count. */ … … 226 226 * Otherwise put the pool in our recycle list. 227 227 */ 228 i = (unsigned) pool->factory_data;228 i = (unsigned) (unsigned long) pool->factory_data; 229 229 230 230 pj_assert(i<PJ_CACHING_POOL_ARRAY_SIZE); -
pjproject/trunk/pjsip-apps/src/samples/pjsip-perf.c
r605 r624 505 505 506 506 /* 507 * Respond any requests with 500.507 * Respond any requests (except ACK!) with 500. 508 508 */ 509 pjsip_endpt_respond_stateless(app.sip_endpt, rdata, 500, &reason, 510 NULL, NULL); 509 if (rdata->msg_info.msg->line.req.method.id != PJSIP_ACK_METHOD) { 510 pjsip_endpt_respond_stateless(app.sip_endpt, rdata, 500, &reason, 511 NULL, NULL); 512 } 513 511 514 return PJ_TRUE; 512 515 } … … 1314 1317 { 1315 1318 pj_time_val end_time, last_report, now; 1316 unsigned thread_index = (unsigned) arg;1319 unsigned thread_index = (unsigned)(long)arg; 1317 1320 unsigned cycle = 0, last_cycle = 0; 1318 1321 … … 1471 1474 { 1472 1475 pj_time_val timeout = { 0, 1 }; 1473 unsigned thread_index = (unsigned) arg;1476 unsigned thread_index = (unsigned)(long)arg; 1474 1477 pj_time_val last_report, next_report; 1475 1478 … … 1607 1610 1608 1611 for (i=0; i<app.thread_count; ++i) { 1609 status = pj_thread_create(app.pool, NULL, &client_thread, (void*)i,1610 0, 0, &app.thread[i]);1612 status = pj_thread_create(app.pool, NULL, &client_thread, 1613 (void*)(long)i, 0, 0, &app.thread[i]); 1611 1614 if (status != PJ_SUCCESS) { 1612 1615 app_perror(THIS_FILE, "Unable to create thread", status); … … 1716 1719 1717 1720 for (i=0; i<app.thread_count; ++i) { 1718 status = pj_thread_create(app.pool, NULL, &server_thread, (void*)i,1719 0, 0, &app.thread[i]);1721 status = pj_thread_create(app.pool, NULL, &server_thread, 1722 (void*)(long)i, 0, 0, &app.thread[i]); 1720 1723 if (status != PJ_SUCCESS) { 1721 1724 app_perror(THIS_FILE, "Unable to create thread", status); -
pjproject/trunk/pjsip/src/pjsip/sip_transport_udp.c
r562 r624 87 87 rdata->tp_info.pool = pool; 88 88 rdata->tp_info.transport = &tp->base; 89 rdata->tp_info.tp_data = (void*) 89 rdata->tp_info.tp_data = (void*)(long)rdata_index; 90 90 rdata->tp_info.op_key.rdata = rdata; 91 91 pj_ioqueue_op_key_init(&rdata->tp_info.op_key.op_key, … … 191 191 192 192 rdata_tp = (struct udp_transport*)rdata->tp_info.transport; 193 rdata_index = (unsigned) rdata->tp_info.tp_data;193 rdata_index = (unsigned)(unsigned long)rdata->tp_info.tp_data; 194 194 195 195 pj_pool_reset(rdata_pool); -
pjproject/trunk/pjsip/src/pjsip/sip_ua_layer.c
r416 r624 540 540 pj_mutex_unlock(mod_ua.mutex); 541 541 542 PJ_LOG(5,(THIS_FILE, 543 "Unable to find dialog for %s, answering with 481", 544 pjsip_rx_data_get_info(rdata))); 545 546 pjsip_endpt_respond_stateless(mod_ua.endpt, rdata, 547 PJSIP_SC_CALL_TSX_DOES_NOT_EXIST, 548 NULL, NULL, NULL); 542 if (rdata->msg_info.msg->line.req.method.id != PJSIP_ACK_METHOD) { 543 PJ_LOG(5,(THIS_FILE, 544 "Unable to find dialog for %s, answering with 481", 545 pjsip_rx_data_get_info(rdata))); 546 547 pjsip_endpt_respond_stateless(mod_ua.endpt, rdata, 548 PJSIP_SC_CALL_TSX_DOES_NOT_EXIST, 549 NULL, NULL, NULL); 550 } else { 551 PJ_LOG(5,(THIS_FILE, 552 "Unable to find dialog for %s", 553 pjsip_rx_data_get_info(rdata))); 554 } 549 555 return PJ_TRUE; 550 556 } -
pjproject/trunk/pjsip/src/test-pjsip/msg_test.c
r583 r624 819 819 "per second (tested with %d message sets with " 820 820 "average message length of " 821 "%d bytes)", PJ_ARRAY_SIZE(test_array), avg_len);821 "%d bytes)", (int)PJ_ARRAY_SIZE(test_array), avg_len); 822 822 report_ival("msg-detect-per-sec", max, "msg/sec", desc); 823 823 … … 832 832 "per second (tested with %d message sets with " 833 833 "average message length of " 834 "%d bytes)", PJ_ARRAY_SIZE(test_array), avg_len);834 "%d bytes)", (int)PJ_ARRAY_SIZE(test_array), avg_len); 835 835 report_ival("msg-parse-per-sec", max, "msg/sec", desc); 836 836 … … 852 852 " per second (tested with %d message sets with " 853 853 "average message length of " 854 "%d bytes)", PJ_ARRAY_SIZE(test_array), avg_len);854 "%d bytes)", (int)PJ_ARRAY_SIZE(test_array), avg_len); 855 855 856 856 report_ival("msg-print-per-sec", max, "msg/sec", desc); -
pjproject/trunk/pjsip/src/test-pjsip/transport_loop_test.c
r563 r624 32 32 pj_status_t status; 33 33 long ref_cnt; 34 unsignedrtt[LOOP], min_rtt;34 int rtt[LOOP], min_rtt; 35 35 36 36 PJ_LOG(3,(THIS_FILE, "testing datagram loop transport")); -
pjproject/trunk/pjsip/src/test-pjsip/transport_tcp_test.c
r563 r624 36 36 pj_status_t status; 37 37 char url[64]; 38 unsignedrtt[SEND_RECV_LOOP], min_rtt;38 int rtt[SEND_RECV_LOOP], min_rtt; 39 39 int i, pkt_lost; 40 40 -
pjproject/trunk/pjsip/src/test-pjsip/transport_test.c
r582 r624 490 490 static int rt_worker_thread(void *arg) 491 491 { 492 int i, thread_id = (int) arg;492 int i, thread_id = (int)(long)arg; 493 493 pj_time_val poll_delay = { 0, 10 }; 494 494 … … 577 577 578 578 /* Create thread, suspended. */ 579 status = pj_thread_create(pool, "rttest%p", &rt_worker_thread, (void*) i, 0,579 status = pj_thread_create(pool, "rttest%p", &rt_worker_thread, (void*)(long)i, 0, 580 580 PJ_THREAD_SUSPENDED, &rt_test_data[i].thread); 581 581 if (status != PJ_SUCCESS) { -
pjproject/trunk/pjsip/src/test-pjsip/transport_udp_test.c
r563 r624 35 35 pj_str_t s; 36 36 pj_status_t status; 37 unsignedrtt[SEND_RECV_LOOP], min_rtt;37 int rtt[SEND_RECV_LOOP], min_rtt; 38 38 int i, pkt_lost; 39 39 -
pjproject/trunk/pjsip/src/test-pjsip/uri_test.c
r613 r624 956 956 "(tested with %d URI set, with average length of " 957 957 "%d chars)", 958 PJ_ARRAY_SIZE(uri_test_array), avg_len);958 (int)PJ_ARRAY_SIZE(uri_test_array), avg_len); 959 959 960 960 report_ival("uri-parse-per-sec", max, "URI/sec", desc); … … 976 976 "(tested with %d URI set, with average length of " 977 977 "%d chars)", 978 PJ_ARRAY_SIZE(uri_test_array), avg_len);978 (int)PJ_ARRAY_SIZE(uri_test_array), avg_len); 979 979 980 980 report_ival("uri-print-per-sec", max, "URI/sec", desc); … … 990 990 "(tested with %d URI set, with average length of " 991 991 "%d chars)", 992 PJ_ARRAY_SIZE(uri_test_array), avg_len);992 (int)PJ_ARRAY_SIZE(uri_test_array), avg_len); 993 993 994 994 report_ival("uri-cmp-per-sec", max, "URI/sec", desc);
Note: See TracChangeset
for help on using the changeset viewer.