Changeset 1417 for pjproject/trunk/pjsip/src/pjsip-simple/evsub_msg.c
- Timestamp:
- Aug 16, 2007 10:11:44 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/evsub_msg.c
r1241 r1417 62 62 char *endbuf = buf+size; 63 63 int printed; 64 const pjsip_parser_const_t *pc = pjsip_parser_const(); 64 65 65 66 copy_advance(p, hdr->name); … … 71 72 72 73 printed = pjsip_param_print_on(&hdr->other_param, p, endbuf-p, 73 &p jsip_TOKEN_SPEC,74 &p jsip_TOKEN_SPEC, ';');74 &pc->pjsip_TOKEN_SPEC, 75 &pc->pjsip_TOKEN_SPEC, ';'); 75 76 if (printed < 0) 76 77 return printed; … … 160 161 char *endbuf = buf+size; 161 162 int printed; 163 const pjsip_parser_const_t *pc = pjsip_parser_const(); 162 164 163 165 copy_advance(p, hdr->name); … … 181 183 182 184 printed = pjsip_param_print_on( &hdr->other_param, p, endbuf-p, 183 &p jsip_TOKEN_SPEC,184 &p jsip_TOKEN_SPEC,185 &pc->pjsip_TOKEN_SPEC, 186 &pc->pjsip_TOKEN_SPEC, 185 187 ';'); 186 188 if (printed < 0) … … 223 225 pjsip_event_hdr *hdr = pjsip_event_hdr_create(ctx->pool); 224 226 const pj_str_t id_param = { "id", 2 }; 225 226 pj_scan_get(ctx->scanner, &pjsip_TOKEN_SPEC, &hdr->event_type); 227 const pjsip_parser_const_t *pc = pjsip_parser_const(); 228 229 pj_scan_get(ctx->scanner, &pc->pjsip_TOKEN_SPEC, &hdr->event_type); 227 230 228 231 while (*ctx->scanner->curptr == ';') { … … 254 257 expires = { "expires", 7 }, 255 258 retry_after = { "retry-after", 11 }; 256 pj_scan_get(ctx->scanner, &pjsip_TOKEN_SPEC, &hdr->sub_state); 259 const pjsip_parser_const_t *pc = pjsip_parser_const(); 260 261 pj_scan_get(ctx->scanner, &pc->pjsip_TOKEN_SPEC, &hdr->sub_state); 257 262 258 263 while (*ctx->scanner->curptr == ';') {
Note: See TracChangeset
for help on using the changeset viewer.