Changeset 5461 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_cli.c
- Timestamp:
- Oct 14, 2016 4:53:07 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app_cli.c
r5170 r5461 1089 1089 }; 1090 1090 1091 choice = pj_strtol(&cval->argv[1]) - 1;1091 choice = (int)pj_strtol(&cval->argv[1]) - 1; 1092 1092 1093 1093 pj_bzero(&elem, sizeof(elem)); … … 1248 1248 1249 1249 if (connect) 1250 status = pjsua_conf_connect( pj_strtol(&cval->argv[1]),1251 pj_strtol(&cval->argv[2]));1250 status = pjsua_conf_connect((int)pj_strtol(&cval->argv[1]), 1251 (int)pj_strtol(&cval->argv[2])); 1252 1252 else 1253 status = pjsua_conf_disconnect( pj_strtol(&cval->argv[1]),1254 pj_strtol(&cval->argv[2]));1253 status = pjsua_conf_disconnect((int)pj_strtol(&cval->argv[1]), 1254 (int)pj_strtol(&cval->argv[2])); 1255 1255 1256 1256 if (status == PJ_SUCCESS) { … … 1306 1306 pj_status_t status; 1307 1307 1308 new_prio = pj_strtol(&cval->argv[2]);1308 new_prio = (int)pj_strtol(&cval->argv[2]); 1309 1309 if (new_prio < 0) 1310 1310 new_prio = 0; … … 1517 1517 pjsua_call_get_count()); 1518 1518 1519 count = pj_strtol(&cval->argv[1]);1519 count = (int)pj_strtol(&cval->argv[1]); 1520 1520 if (count < 1) 1521 1521 return PJ_SUCCESS; … … 1577 1577 pjsip_generic_string_hdr hcontact; 1578 1578 1579 st_code = pj_strtol(&cval->argv[1]);1579 st_code = (int)pj_strtol(&cval->argv[1]); 1580 1580 if ((st_code < 100) || (st_code > 699)) 1581 1581 return PJ_SUCCESS; … … 1850 1850 ACCEPT_REPLACE, ACCEPT, REJECT, STOP 1851 1851 }; 1852 int choice = pj_strtol(&cval->argv[1]);1852 int choice = (int)pj_strtol(&cval->argv[1]); 1853 1853 1854 1854 switch (choice) { … … 2550 2550 int delay; 2551 2551 2552 delay = pj_strtoul(&cval->argv[1]);2552 delay = (int)pj_strtoul(&cval->argv[1]); 2553 2553 if (delay < 0) delay = 0; 2554 2554 pj_thread_sleep(delay);
Note: See TracChangeset
for help on using the changeset viewer.