- Timestamp:
- Jul 19, 2011 8:40:20 AM (13 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjlib-util/stun_simple_client.c
r3553 r3666 45 45 unsigned srv_cnt; 46 46 pj_sockaddr_in srv_addr[2]; 47 int i, j,send_cnt = 0;47 int i, send_cnt = 0; 48 48 pj_pool_t *pool; 49 49 struct query_rec { … … 124 124 /* Send messages to servers that has not given us response. */ 125 125 for (i=0; i<sock_cnt && status==PJ_SUCCESS; ++i) { 126 unsigned j; 126 127 for (j=0; j<srv_cnt && status==PJ_SUCCESS; ++j) { 127 128 pjstun_msg_hdr *msg_hdr = (pjstun_msg_hdr*) out_msg; -
pjproject/trunk/pjlib/src/pj/ioqueue_common_abs.c
r3553 r3666 284 284 struct write_operation *write_op; 285 285 pj_ssize_t sent; 286 pj_status_t send_rc ;286 pj_status_t send_rc = PJ_SUCCESS; 287 287 288 288 /* Get the first in the queue. */ … … 313 313 //write_op->op = 0; 314 314 } else if (write_op->op == PJ_IOQUEUE_OP_SEND_TO) { 315 int retry ;316 for (retry=0; retry<2; ++retry) {315 int retry = 2; 316 while (--retry >= 0) { 317 317 send_rc = pj_sock_sendto(h->fd, 318 318 write_op->buf+write_op->written, … … 936 936 struct write_operation *write_op; 937 937 unsigned retry; 938 pj_bool_t restart_retry = PJ_FALSE; 939 pj_status_t status; 940 pj_ssize_t sent; 941 942 PJ_ASSERT_RETURN(key && op_key && data && length, PJ_EINVAL); 943 PJ_CHECK_STACK(); 944 938 945 #if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \ 939 946 PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0 940 pj_bool_t restart_retry = PJ_FALSE; 947 retry_on_restart: 948 #else 949 PJ_UNUSED_ARG(restart_retry); 941 950 #endif 942 pj_status_t status;943 pj_ssize_t sent;944 945 PJ_ASSERT_RETURN(key && op_key && data && length, PJ_EINVAL);946 PJ_CHECK_STACK();947 948 retry_on_restart:949 951 /* Check if key is closing. */ 950 952 if (IS_CLOSING(key)) -
pjproject/trunk/pjlib/src/pj/os_core_win32.c
r3664 r3666 1429 1429 unsigned flags) 1430 1430 { 1431 PJ_UNUSED_ARG(flags); 1431 1432 return (*main_func)(argc, argv); 1432 1433 } -
pjproject/trunk/pjmedia/include/pjmedia-codec/audio_codecs.h
r3664 r3666 49 49 struct { 50 50 unsigned option; /**< Bitmask of options. */ 51 unsignedquality; /**< Codec quality. */52 unsignedcomplexity; /**< Codec complexity. */51 int quality; /**< Codec quality. */ 52 int complexity; /**< Codec complexity. */ 53 53 } speex; 54 54 -
pjproject/trunk/pjmedia/src/pjmedia/event.c
r3664 r3666 108 108 pjmedia_fourcc_name(event->type, event_name), 109 109 pjmedia_fourcc_name(epub->sig, epub_name))); 110 /* Suppress compiler warning if trace is disabled */ 111 PJ_UNUSED_ARG(event_name); 112 PJ_UNUSED_ARG(epub_name); 110 113 111 114 esub = epub->subscription_list.next; -
pjproject/trunk/pjmedia/src/test/vid_dev_test.c
r3664 r3666 76 76 pjmedia_event *event) 77 77 { 78 PJ_UNUSED_ARG(esub); 79 78 80 if (event->type == PJMEDIA_EVENT_WND_CLOSED) 79 81 is_quitting = PJ_TRUE; -
pjproject/trunk/pjmedia/src/test/vid_port_test.c
r3664 r3666 32 32 pjmedia_event *event) 33 33 { 34 PJ_UNUSED_ARG(esub); 35 34 36 if (event->type == PJMEDIA_EVENT_WND_CLOSED) 35 37 is_quitting = PJ_TRUE; … … 47 49 pjmedia_vid_port_param param; 48 50 pjmedia_video_format_detail *vfd; 49 pjmedia_vid_dev_cb cb;50 51 pjmedia_event_subscription esub; 51 52 pj_status_t status; … … 181 182 PJMEDIA_FORMAT_I420 182 183 }; 183 pj_status_t status;184 184 185 185 PJ_LOG(3, (THIS_FILE, " Video port tests:")); -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r3664 r3666 2654 2654 /* General processing for media state. "mi" is the media index */ 2655 2655 static void on_call_generic_media_state(pjsua_call_info *ci, unsigned mi, 2656 2656 pj_bool_t *has_error) 2657 2657 { 2658 2658 const char *status_name[] = { … … 2664 2664 }; 2665 2665 2666 PJ_UNUSED_ARG(has_error); 2667 2666 2668 pj_assert(ci->media[mi].status <= PJ_ARRAY_SIZE(status_name)); 2667 2669 pj_assert(PJSUA_CALL_MEDIA_ERROR == 4); … … 2676 2678 pj_bool_t *has_error) 2677 2679 { 2680 PJ_UNUSED_ARG(has_error); 2681 2678 2682 /* Stop ringback */ 2679 2683 ring_stop(ci->id); … … 2762 2766 pj_bool_t *has_error) 2763 2767 { 2768 PJ_UNUSED_ARG(ci); 2769 PJ_UNUSED_ARG(mi); 2770 PJ_UNUSED_ARG(has_error); 2764 2771 } 2765 2772 … … 3150 3157 { 3151 3158 char event_name[5]; 3159 PJ_UNUSED_ARG(call_id); 3160 PJ_UNUSED_ARG(med_idx); 3152 3161 PJ_LOG(4,(THIS_FILE, "Event %s", 3153 3162 pjmedia_fourcc_name(event->type, event_name))); -
pjproject/trunk/pjsip-apps/src/samples/simpleua.c
r3664 r3666 225 225 int main(int argc, char *argv[]) 226 226 { 227 pj_pool_t *pool ;227 pj_pool_t *pool = NULL; 228 228 pj_status_t status; 229 229 unsigned i; … … 594 594 595 595 /* Release pool */ 596 pj_pool_release(pool); 596 if (pool) 597 pj_pool_release(pool); 597 598 598 599 return 0; -
pjproject/trunk/pjsip/include/pjsua-lib/pjsua_internal.h
r3664 r3666 687 687 w->pool = pool; 688 688 w->preview_cap_id = PJMEDIA_VID_INVALID_DEV; 689 #else 690 PJ_UNUSED_ARG(wid); 689 691 #endif 690 692 } -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r3664 r3666 1325 1325 1326 1326 if (call_med->strm.v.cap_win_id != PJSUA_INVALID_ID) { 1327 pjsua_vid_win *w = &pjsua_var.win[call_med->strm.v.cap_win_id]; 1328 cap_dev = w->preview_cap_id; 1327 cap_dev = call_med->strm.v.cap_dev; 1329 1328 } 1330 1329 info->media[info->media_cnt].stream.vid.cap_dev = cap_dev; -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r3664 r3666 316 316 pjsip_tx_data *tdata; 317 317 pjsip_response_addr res_addr; 318 pjmedia_transport_info tpinfo;319 pjmedia_sdp_session *sdp;320 318 const pjsip_hdr *cap_hdr; 321 319 pj_status_t status; … … 386 384 #if DISABLED_FOR_TICKET_1185 387 385 if (pjsua_var.calls[0].med_tp) { 386 pjmedia_transport_info tpinfo; 387 pjmedia_sdp_session *sdp; 388 388 389 pjmedia_transport_info_init(&tpinfo); 389 390 pjmedia_transport_get_info(pjsua_var.calls[0].med_tp, &tpinfo); … … 2621 2622 2622 2623 PJ_LOG(3,(THIS_FILE, "Dumping media transports:")); 2624 // Suppress compile warning caused by unreferenced var. 2625 PJ_UNUSED_ARG(i); 2623 2626 #if DISABLED_FOR_TICKET_1185 2624 2627 for (i=0; i<pjsua_var.ua_cfg.max_calls; ++i) {
Note: See TracChangeset
for help on using the changeset viewer.