Changeset 5170 for pjproject/trunk/pjsip/src/pjsip/sip_parser.c
- Timestamp:
- Aug 25, 2015 8:45:46 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_parser.c
r4537 r5170 675 675 char hname_copy[PJSIP_MAX_HNAME_LEN]; 676 676 pj_str_t tmp; 677 pjsip_parse_hdr_func * handler;677 pjsip_parse_hdr_func *func; 678 678 679 679 if (hname->slen >= PJSIP_MAX_HNAME_LEN) { … … 684 684 /* First, common case, try to find handler with exact name */ 685 685 hash = pj_hash_calc(0, hname->ptr, (unsigned)hname->slen); 686 handler= find_handler_imp(hash, hname);687 if ( handler)688 return handler;686 func = find_handler_imp(hash, hname); 687 if (func) 688 return func; 689 689 690 690 … … 981 981 /* Parse headers. */ 982 982 do { 983 pjsip_parse_hdr_func * handler;983 pjsip_parse_hdr_func * func; 984 984 pjsip_hdr *hdr = NULL; 985 985 … … 996 996 997 997 /* Find handler. */ 998 handler= find_handler(&hname);998 func = find_handler(&hname); 999 999 1000 1000 /* Call the handler if found. … … 1002 1002 * hname/hvalue pair. 1003 1003 */ 1004 if ( handler) {1005 hdr = (* handler)(ctx);1004 if (func) { 1005 hdr = (*func)(ctx); 1006 1006 1007 1007 /* Note: … … 2263 2263 2264 2264 PJ_TRY { 2265 pjsip_parse_hdr_func * handler= find_handler(hname);2266 if ( handler) {2267 hdr = (* handler)(&context);2265 pjsip_parse_hdr_func *func = find_handler(hname); 2266 if (func) { 2267 hdr = (*func)(&context); 2268 2268 } else { 2269 2269 hdr = parse_hdr_generic_string(&context); … … 2311 2311 /* Parse headers. */ 2312 2312 do { 2313 pjsip_parse_hdr_func * handler;2313 pjsip_parse_hdr_func * func; 2314 2314 pjsip_hdr *hdr = NULL; 2315 2315 … … 2326 2326 2327 2327 /* Find handler. */ 2328 handler= find_handler(&hname);2328 func = find_handler(&hname); 2329 2329 2330 2330 /* Call the handler if found. … … 2332 2332 * hname/hvalue pair. 2333 2333 */ 2334 if ( handler) {2335 hdr = (* handler)(&ctx);2334 if (func) { 2335 hdr = (*func)(&ctx); 2336 2336 } else { 2337 2337 hdr = parse_hdr_generic_string(&ctx);
Note: See TracChangeset
for help on using the changeset viewer.