Changeset 5535
- Timestamp:
- Jan 19, 2017 10:31:38 AM (8 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib-util/src/pjlib-util-test/resolver_test.c
r5379 r5535 711 711 rc = pj_dns_parse_a_response(&pkt, &rec); 712 712 pj_assert(rc == PJLIB_UTIL_EDNSNOANSWERREC); 713 PJ_UNUSED_ARG(rc); 713 714 714 715 return 0; … … 920 921 rc = pj_dns_parse_addr_response(&pkt, &rec); 921 922 pj_assert(rc == PJLIB_UTIL_EDNSNOANSWERREC); 923 PJ_UNUSED_ARG(rc); 922 924 923 925 return 0; … … 1469 1471 1470 1472 1471 return 0;1473 return status; 1472 1474 } 1473 1475 … … 1839 1841 pj_sem_wait(sem); 1840 1842 1841 return 0;1843 return status; 1842 1844 } 1843 1845 -
pjproject/trunk/pjlib-util/src/pjlib-util/errno.c
r4704 r5535 185 185 pj_assert(status == PJ_SUCCESS); 186 186 187 return PJ_SUCCESS;187 return status; 188 188 } -
pjproject/trunk/pjmedia/src/test/mips_test.c
r5170 r5535 716 716 } 717 717 718 return PJ_SUCCESS;718 return status; 719 719 } 720 720 … … 1030 1030 } 1031 1031 1032 return PJ_SUCCESS;1032 return status; 1033 1033 } 1034 1034 … … 1203 1203 } 1204 1204 1205 return PJ_SUCCESS;1205 return status; 1206 1206 } 1207 1207 … … 2094 2094 } 2095 2095 2096 return PJ_SUCCESS;2096 return status; 2097 2097 } 2098 2098 … … 2122 2122 } 2123 2123 2124 return PJ_SUCCESS;2124 return status; 2125 2125 } 2126 2126 … … 2366 2366 } 2367 2367 } 2368 PJ_UNUSED_ARG(status); 2368 2369 pj_get_timestamp(&t1); 2369 2370 -
pjproject/trunk/pjnath/src/pjnath-test/concur_test.c
r5388 r5535 289 289 pj_assert(status == PJ_SUCCESS); 290 290 } 291 PJ_UNUSED_ARG(status); 291 292 292 293 /* Test 1: Main thread calls destroy while callback is processing response */ -
pjproject/trunk/pjnath/src/pjnath-test/stun.c
r5170 r5535 319 319 &msg, NULL, &res); 320 320 pj_assert(status != PJ_SUCCESS); 321 PJ_UNUSED_ARG(status); 321 322 pj_assert(res != NULL); 322 323 -
pjproject/trunk/pjnath/src/pjnath/errno.c
r4613 r5535 185 185 pj_assert(status == PJ_SUCCESS); 186 186 187 return PJ_SUCCESS;187 return status; 188 188 } 189 189 -
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_cli.c
r5461 r5535 208 208 if (app_config.cli_cfg.cli_fe & CLI_FE_TELNET) { 209 209 pj_cli_telnet_cfg *fe_cfg = &app_config.cli_cfg.telnet_cfg; 210 pj_pool_t *pool;211 212 pool = pj_pool_create(cfg->pf, "cli_cp", 128, 128, NULL);213 pj_assert(pool);214 210 215 211 status = pj_cli_telnet_create(cli, fe_cfg, &telnet_front_end); -
pjproject/trunk/pjsip-apps/src/samples/aectest.c
r5446 r5535 301 301 puts("ENTER to quit"); 302 302 dummy = fgets(s, sizeof(s), stdin); 303 PJ_UNUSED_ARG(dummy); 303 304 } 304 305 -
pjproject/trunk/pjsip-apps/src/samples/auddemo.c
r3664 r5535 297 297 PJ_LOG(3,(THIS_FILE, "Recording started, press ENTER to stop")); 298 298 dummy = fgets(line, sizeof(line), stdin); 299 PJ_UNUSED_ARG(dummy); 299 300 300 301 on_return: … … 364 365 PJ_LOG(3,(THIS_FILE, "Playback started, press ENTER to stop")); 365 366 dummy = fgets(line, sizeof(line), stdin); 367 PJ_UNUSED_ARG(dummy); 366 368 367 369 on_return: -
pjproject/trunk/pjsip-apps/src/samples/aviplay.c
r4815 r5535 468 468 puts("Error: filename required"); 469 469 puts(desc); 470 return 1 ;470 return 110; 471 471 } 472 472 … … 474 474 /* Must init PJLIB first: */ 475 475 status = pj_init(); 476 PJ_ASSERT_RETURN(status == PJ_SUCCESS, 1 );476 PJ_ASSERT_RETURN(status == PJ_SUCCESS, 120); 477 477 478 478 /* Must create a pool factory before we can allocate any memory. */ … … 493 493 494 494 status = pjmedia_vid_dev_subsys_init(&cp.factory); 495 if (status != PJ_SUCCESS) 495 if (status != PJ_SUCCESS) { 496 rc = 130; 496 497 goto on_return; 498 } 497 499 498 500 status = pjmedia_aud_subsys_init(&cp.factory); 499 501 if (status != PJ_SUCCESS) { 502 rc = 140; 500 503 goto on_return; 501 504 } … … 503 506 #if defined(PJMEDIA_HAS_OPENH264_CODEC) && PJMEDIA_HAS_OPENH264_CODEC != 0 504 507 status = pjmedia_codec_openh264_vid_init(NULL, &cp.factory); 505 if (status != PJ_SUCCESS) 508 if (status != PJ_SUCCESS) { 509 rc = 150; 506 510 goto on_return; 511 } 507 512 #endif 508 513 509 514 #if PJMEDIA_HAS_FFMPEG_VID_CODEC 510 515 status = pjmedia_codec_ffmpeg_vid_init(NULL, &cp.factory); 511 if (status != PJ_SUCCESS) 516 if (status != PJ_SUCCESS) { 517 rc = 160; 512 518 goto on_return; 519 } 513 520 #endif 514 521 … … 549 556 550 557 /* Done. */ 551 return 0;558 return rc; 552 559 } 553 560 -
pjproject/trunk/pjsip-apps/src/samples/pjsip-perf.c
r5241 r5535 1476 1476 status = submit_job(); 1477 1477 } 1478 PJ_UNUSED_ARG(status); 1478 1479 1479 1480 ++app.client.job_submitted; -
pjproject/trunk/pjsip-apps/src/samples/siprtp.c
r5366 r5535 1398 1398 { 1399 1399 struct call *call; 1400 pj_pool_t *pool;1401 1400 struct media_stream *audio; 1402 1401 const pjmedia_sdp_session *local_sdp, *remote_sdp; … … 1405 1404 1406 1405 call = inv->mod_data[mod_siprtp.id]; 1407 pool = inv->dlg->pool;1408 1406 audio = &call->media[0]; 1409 1407 -
pjproject/trunk/pjsip/src/pjsip/sip_transport_loop.c
r5024 r5535 191 191 &recv_pkt->rdata); 192 192 pj_assert(size_eaten == recv_pkt->rdata.pkt_info.len); 193 PJ_UNUSED_ARG(size_eaten); 193 194 194 195 pjsip_endpt_release_pool(loop->base.endpt, … … 337 338 /* Must "eat" all the packets. */ 338 339 pj_assert(size_eaten == node->rdata.pkt_info.len); 340 PJ_UNUSED_ARG(size_eaten); 339 341 340 342 /* Done. */ -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r5486 r5535 2600 2600 uri, acc->cfg.reg_uri.slen+10); 2601 2601 pj_assert(d > 0); 2602 PJ_UNUSED_ARG(d); 2602 2603 2603 2604 h = pjsip_authorization_hdr_create(tdata->pool); -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r5495 r5535 3317 3317 /* Verify that media must be active. */ 3318 3318 pj_assert(loc_m->desc.port && rem_m->desc.port); 3319 PJ_UNUSED_ARG(loc_m); 3319 3320 3320 3321 /* Count the formats in the answer. */ -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r5521 r5535 2252 2252 if (call->inv && call->inv->neg) 2253 2253 sdp_neg_state = pjmedia_sdp_neg_get_state(call->inv->neg); 2254 2255 PJ_UNUSED_ARG(sdp_neg_state); 2254 2256 2255 2257 /* Get one address to use in the origin field */ -
pjproject/trunk/pjsip/src/test/inv_offer_answer_test.c
r5241 r5535 185 185 status = pjmedia_sdp_parse(pool, dup.ptr, dup.slen, &sdp); 186 186 pj_assert(status == PJ_SUCCESS); 187 PJ_UNUSED_ARG(status); 187 188 188 189 return sdp; … … 336 337 pj_assert(status == PJ_SUCCESS); 337 338 338 return PJ_TRUE;339 return (status == PJ_SUCCESS); 339 340 } 340 341 … … 393 394 break; 394 395 } 396 PJ_UNUSED_ARG(status); 395 397 } 396 398 … … 677 679 status = pjsip_udp_transport_start(endpt, &addr, NULL, 1, &tp); 678 680 pj_assert(status == PJ_SUCCESS); 681 PJ_UNUSED_ARG(status); 679 682 } 680 683 -
pjproject/trunk/pjsip/src/test/regc_test.c
r5024 r5535 205 205 pj_assert(status == PJ_SUCCESS); 206 206 207 return PJ_TRUE;207 return (status == PJ_SUCCESS); 208 208 } 209 209 … … 243 243 status = pjsip_regc_get_info(param->regc, &info); 244 244 pj_assert(status == PJ_SUCCESS); 245 PJ_UNUSED_ARG(status); 245 246 246 247 client->error = (param->status != PJ_SUCCESS); -
pjproject/trunk/pjsip/src/test/tsx_uac_test.c
r4420 r5535 778 778 pjsip_endpt_schedule_timer(endpt, &timer.entry, &delay); 779 779 780 return PJ_TRUE; 781 780 return (status == PJ_SUCCESS); 782 781 783 782 } else … … 851 850 */ 852 851 pjsip_method *method; 853 pj_status_t status ;852 pj_status_t status = PJ_SUCCESS; 854 853 855 854 method = &rdata->msg_info.msg->line.req.method; … … 934 933 } 935 934 936 return PJ_TRUE;935 return (status == PJ_SUCCESS); 937 936 938 937 }
Note: See TracChangeset
for help on using the changeset viewer.