Changeset 1266 for pjproject/trunk/pjsip/src/pjsip-ua/sip_xfer.c
- Timestamp:
- May 11, 2007 3:14:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_xfer.c
r1242 r1266 180 180 181 181 /* Create xfer session */ 182 xfer = pj_pool_zalloc(dlg->pool, sizeof(pjsip_xfer));182 xfer = PJ_POOL_ZALLOC_T(dlg->pool, pjsip_xfer); 183 183 xfer->dlg = dlg; 184 184 xfer->sub = sub; … … 249 249 250 250 /* Create server xfer subscription */ 251 xfer = pj_pool_zalloc(dlg->pool, sizeof(pjsip_xfer));251 xfer = PJ_POOL_ZALLOC_T(dlg->pool, pjsip_xfer); 252 252 xfer->dlg = dlg; 253 253 xfer->sub = sub; … … 287 287 288 288 /* Get the xfer object. */ 289 xfer = pjsip_evsub_get_mod_data(sub, mod_xfer.id);289 xfer = (pjsip_xfer*) pjsip_evsub_get_mod_data(sub, mod_xfer.id); 290 290 PJ_ASSERT_RETURN(xfer != NULL, PJSIP_ENOREFERSESSION); 291 291 … … 374 374 375 375 /* Get the xfer object. */ 376 xfer = pjsip_evsub_get_mod_data(sub, mod_xfer.id);376 xfer = (pjsip_xfer*) pjsip_evsub_get_mod_data(sub, mod_xfer.id); 377 377 PJ_ASSERT_RETURN(xfer != NULL, PJSIP_ENOREFERSESSION); 378 378 … … 399 399 400 400 /* Create sipfrag content. */ 401 body = pj_pool_alloc(tdata->pool, 128);401 body = (char*) pj_pool_alloc(tdata->pool, 128); 402 402 bodylen = pj_ansi_snprintf(body, 128, "SIP/2.0 %u %.*s", 403 403 xfer_st_code, … … 410 410 411 411 /* Create SIP message body. */ 412 msg_body = pj_pool_zalloc(tdata->pool, sizeof(pjsip_msg_body));412 msg_body = PJ_POOL_ZALLOC_T(tdata->pool, pjsip_msg_body); 413 413 msg_body->content_type.type = STR_MESSAGE; 414 414 msg_body->content_type.subtype = STR_SIPFRAG; … … 448 448 449 449 /* Get the xfer object. */ 450 xfer = pjsip_evsub_get_mod_data(sub, mod_xfer.id);450 xfer = (pjsip_xfer*) pjsip_evsub_get_mod_data(sub, mod_xfer.id); 451 451 PJ_ASSERT_RETURN(xfer != NULL, PJSIP_ENOREFERSESSION); 452 452 … … 481 481 pjsip_xfer *xfer; 482 482 483 xfer = pjsip_evsub_get_mod_data(sub, mod_xfer.id);483 xfer = (pjsip_xfer*) pjsip_evsub_get_mod_data(sub, mod_xfer.id); 484 484 PJ_ASSERT_ON_FAIL(xfer!=NULL, {return;}); 485 485 … … 497 497 pjsip_xfer *xfer; 498 498 499 xfer = pjsip_evsub_get_mod_data(sub, mod_xfer.id);499 xfer = (pjsip_xfer*) pjsip_evsub_get_mod_data(sub, mod_xfer.id); 500 500 PJ_ASSERT_ON_FAIL(xfer!=NULL, {return;}); 501 501 … … 516 516 pjsip_xfer *xfer; 517 517 518 xfer = pjsip_evsub_get_mod_data(sub, mod_xfer.id);518 xfer = (pjsip_xfer*) pjsip_evsub_get_mod_data(sub, mod_xfer.id); 519 519 PJ_ASSERT_ON_FAIL(xfer!=NULL, {return;}); 520 520 … … 557 557 pjsip_xfer *xfer; 558 558 559 xfer = pjsip_evsub_get_mod_data(sub, mod_xfer.id);559 xfer = (pjsip_xfer*) pjsip_evsub_get_mod_data(sub, mod_xfer.id); 560 560 PJ_ASSERT_ON_FAIL(xfer!=NULL, {return;}); 561 561 … … 572 572 pjsip_xfer *xfer; 573 573 574 xfer = pjsip_evsub_get_mod_data(sub, mod_xfer.id);574 xfer = (pjsip_xfer*) pjsip_evsub_get_mod_data(sub, mod_xfer.id); 575 575 PJ_ASSERT_ON_FAIL(xfer!=NULL, {return;}); 576 576 … … 595 595 pjsip_xfer *xfer; 596 596 597 xfer = pjsip_evsub_get_mod_data(sub, mod_xfer.id);597 xfer = (pjsip_xfer*) pjsip_evsub_get_mod_data(sub, mod_xfer.id); 598 598 PJ_ASSERT_ON_FAIL(xfer!=NULL, {return;}); 599 599
Note: See TracChangeset
for help on using the changeset viewer.