Changeset 4537 for pjproject/trunk/pjsip-apps/src/samples/pjsip-perf.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/pjsip-perf.c
r4370 r4537 68 68 #include <stdio.h> 69 69 70 #if defined(PJ_WIN32) && PJ_WIN32!=070 #if (defined(PJ_WIN32) && PJ_WIN32!=0) || (defined(PJ_WIN64) && PJ_WIN64!=0) 71 71 # include <windows.h> 72 72 #endif … … 1007 1007 } else if (inv->state == PJSIP_INV_STATE_DISCONNECTED) { 1008 1008 report_completion(inv->cause); 1009 inv->mod_data[mod_test.id] = (void*) 1;1009 inv->mod_data[mod_test.id] = (void*)(pj_ssize_t)1; 1010 1010 } 1011 1011 } … … 1094 1094 pj_pool_t *pool; 1095 1095 char *url; 1096 int len = (c_url ? pj_ansi_strlen(c_url) : 0);1096 pj_size_t len = (c_url ? pj_ansi_strlen(c_url) : 0); 1097 1097 1098 1098 if (!len) return -1; … … 1371 1371 if (tsx->state==PJSIP_TSX_STATE_TERMINATED) { 1372 1372 report_completion(tsx->status_code); 1373 tsx->mod_data[mod_test.id] = (void*) 1;1373 tsx->mod_data[mod_test.id] = (void*)(pj_ssize_t)1; 1374 1374 } 1375 1375 else if (tsx->method.id == PJSIP_INVITE_METHOD && … … 1377 1377 1378 1378 report_completion(tsx->status_code); 1379 tsx->mod_data[mod_test.id] = (void*) 1;1379 tsx->mod_data[mod_test.id] = (void*)(pj_ssize_t)1; 1380 1380 1381 1381 } else if (tsx->state == PJSIP_TSX_STATE_COMPLETED) { 1382 1382 1383 1383 report_completion(tsx->status_code); 1384 tsx->mod_data[mod_test.id] = (void*) 1;1384 tsx->mod_data[mod_test.id] = (void*)(pj_ssize_t)1; 1385 1385 1386 1386 TERMINATE_TSX(tsx, tsx->status_code); … … 1422 1422 { 1423 1423 pj_time_val end_time, last_report, now; 1424 unsigned thread_index = (unsigned)(long) arg;1424 unsigned thread_index = (unsigned)(long)(pj_ssize_t)arg; 1425 1425 unsigned cycle = 0, last_cycle = 0; 1426 1426 … … 1579 1579 { 1580 1580 pj_time_val timeout = { 0, 1 }; 1581 unsigned thread_index = (unsigned)(long) arg;1581 unsigned thread_index = (unsigned)(long)(pj_ssize_t)arg; 1582 1582 pj_time_val last_report, next_report; 1583 1583 … … 1640 1640 puts(msg); 1641 1641 1642 #if defined(PJ_WIN32) && PJ_WIN32!=01642 #if (defined(PJ_WIN32) && PJ_WIN32!=0) || (defined(PJ_WIN64) && PJ_WIN64!=0) 1643 1643 OutputDebugString(msg); 1644 1644 OutputDebugString("\n"); … … 1716 1716 for (i=0; i<app.thread_count; ++i) { 1717 1717 status = pj_thread_create(app.pool, NULL, &client_thread, 1718 (void*)(long)i, 0, 0, &app.thread[i]); 1718 (void*)(pj_ssize_t)i, 0, 0, 1719 &app.thread[i]); 1719 1720 if (status != PJ_SUCCESS) { 1720 1721 app_perror(THIS_FILE, "Unable to create thread", status); … … 1825 1826 for (i=0; i<app.thread_count; ++i) { 1826 1827 status = pj_thread_create(app.pool, NULL, &server_thread, 1827 (void*)(long)i, 0, 0, &app.thread[i]); 1828 (void*)(pj_ssize_t)i, 0, 0, 1829 &app.thread[i]); 1828 1830 if (status != PJ_SUCCESS) { 1829 1831 app_perror(THIS_FILE, "Unable to create thread", status);
Note: See TracChangeset
for help on using the changeset viewer.