Changeset 4537 for pjproject/trunk/pjsip/src/pjsip/sip_parser.c
- Timestamp:
- Jun 19, 2013 6:47:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_parser.c
r4445 r4537 246 246 { 247 247 char *new_param, *p; 248 int len;248 pj_size_t len; 249 249 250 250 len = param->slen + pname->slen + pvalue->slen + 3; … … 252 252 253 253 if (param->slen) { 254 int old_len = param->slen;254 pj_size_t old_len = param->slen; 255 255 pj_memcpy(p, param->ptr, old_len); 256 256 p += old_len; … … 561 561 562 562 /* Calculate hash value. */ 563 rec.hname_hash = pj_hash_calc(0, rec.hname, rec.hname_len);563 rec.hname_hash = pj_hash_calc(0, rec.hname, (unsigned)rec.hname_len); 564 564 565 565 /* Get the pos to insert the new handler. */ … … 596 596 pjsip_parse_hdr_func *fptr) 597 597 { 598 unsigned i, len; 598 unsigned i; 599 pj_size_t len; 599 600 char hname_lcase[PJSIP_MAX_HNAME_LEN+1]; 600 601 pj_status_t status; … … 682 683 683 684 /* First, common case, try to find handler with exact name */ 684 hash = pj_hash_calc(0, hname->ptr, hname->slen);685 hash = pj_hash_calc(0, hname->ptr, (unsigned)hname->slen); 685 686 handler = find_handler_imp(hash, hname); 686 687 if (handler) … … 1065 1066 1066 1067 body->data = scanner->curptr; 1067 body->len = scanner->end - scanner->curptr;1068 body->len = (unsigned)(scanner->end - scanner->curptr); 1068 1069 body->print_body = &pjsip_print_text_body; 1069 1070 body->clone_data = &pjsip_clone_text_data; … … 2279 2280 2280 2281 if (parsed_len) { 2281 *parsed_len = ( scanner.curptr - scanner.begin);2282 *parsed_len = (unsigned)(scanner.curptr - scanner.begin); 2282 2283 } 2283 2284
Note: See TracChangeset
for help on using the changeset viewer.