Changeset 4537 for pjproject/trunk/pjsip/src/test/msg_test.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test/msg_test.c
r3553 r4537 248 248 static pjsip_msg *print_msg; 249 249 pj_status_t status = PJ_SUCCESS; 250 int len;250 pj_ssize_t len; 251 251 pj_str_t str1, str2; 252 252 pjsip_hdr *hdr1, *hdr2; … … 810 810 "m=audio 3456 RTP/AVP 0 1 3 99\r\n" 811 811 "a=rtpmap:0 PCMU/8000\r\n"; 812 body->len = pj_ansi_strlen((const char*) body->data);812 body->len = (unsigned)pj_ansi_strlen((const char*) body->data); 813 813 body->print_body = &pjsip_print_text_body; 814 814 … … 1889 1889 struct hdr_test_t *test = &hdr_test_data[i]; 1890 1890 pj_str_t hname; 1891 int len, parsed_len; 1891 pj_size_t len; 1892 int parsed_len; 1892 1893 pj_pool_t *pool; 1893 1894 pjsip_hdr *parsed_hdr1=NULL, *parsed_hdr2=NULL; … … 1995 1996 unsigned print; 1996 1997 } run[COUNT]; 1997 unsigned i, max, avg_len; 1998 unsigned i, max; 1999 int avg_len; 1998 2000 char desc[250]; 1999 2001 pj_status_t status; … … 2017 2019 /* Calculate average message length */ 2018 2020 for (i=0, avg_len=0; i<PJ_ARRAY_SIZE(test_array); ++i) { 2019 avg_len += test_array[i].len;2021 avg_len += (int)test_array[i].len; 2020 2022 } 2021 2023 avg_len /= PJ_ARRAY_SIZE(test_array);
Note: See TracChangeset
for help on using the changeset viewer.