Changeset 1981 for pjproject/trunk
- Timestamp:
- Jun 4, 2008 2:44:29 PM (16 years ago)
- Location:
- pjproject/trunk/pjsip/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c
r1959 r1981 569 569 /* Add Contact headers. */ 570 570 hdr = (pjsip_hdr*)regc->contact_hdr_list.next; 571 while ( hdr != (pjsip_hdr*)®c->contact_hdr_list) {571 while ((void*)hdr != (void*)®c->contact_hdr_list) { 572 572 pjsip_msg_add_hdr(msg, (pjsip_hdr*) 573 573 pjsip_hdr_shallow_clone(tdata->pool, hdr)); -
pjproject/trunk/pjsip/src/test-pjsip/regc_test.c
r1959 r1981 581 581 goto on_return; 582 582 } 583 if ( h1->next == (pjsip_contact_hdr*)&tdata->msg->hdr)583 if ((void*)h1->next == (void*)&tdata->msg->hdr) 584 584 h2 = NULL; 585 585 else … … 591 591 } 592 592 /* must not have other Contact header */ 593 if ( h2->next != (pjsip_contact_hdr*)&tdata->msg->hdr &&593 if ((void*)h2->next != (void*)&tdata->msg->hdr && 594 594 pjsip_msg_find_hdr(tdata->msg, PJSIP_H_CONTACT, h2->next) != NULL) 595 595 { … … 661 661 goto on_return; 662 662 } 663 if ( h1->next == (pjsip_contact_hdr*)&tdata->msg->hdr)663 if ((void*)h1->next == (void*)&tdata->msg->hdr) 664 664 h2 = NULL; 665 665 else … … 671 671 } 672 672 /* must not have other Contact header */ 673 if ( h2->next != (pjsip_contact_hdr*)&tdata->msg->hdr &&673 if ((void*)h2->next != (void*)&tdata->msg->hdr && 674 674 pjsip_msg_find_hdr(tdata->msg, PJSIP_H_CONTACT, h2->next) != NULL) 675 675 {
Note: See TracChangeset
for help on using the changeset viewer.