Changeset 1981 for pjproject/trunk


Ignore:
Timestamp:
Jun 4, 2008 2:44:29 PM (16 years ago)
Author:
bennylp
Message:

Fixed gcc warnings about type pruned pointers

Location:
pjproject/trunk/pjsip/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_reg.c

    r1959 r1981  
    569569    /* Add Contact headers. */ 
    570570    hdr = (pjsip_hdr*)regc->contact_hdr_list.next; 
    571     while (hdr != (pjsip_hdr*)&regc->contact_hdr_list) { 
     571    while ((void*)hdr != (void*)&regc->contact_hdr_list) { 
    572572        pjsip_msg_add_hdr(msg, (pjsip_hdr*) 
    573573                               pjsip_hdr_shallow_clone(tdata->pool, hdr)); 
  • pjproject/trunk/pjsip/src/test-pjsip/regc_test.c

    r1959 r1981  
    581581        goto on_return; 
    582582    } 
    583     if (h1->next == (pjsip_contact_hdr*)&tdata->msg->hdr) 
     583    if ((void*)h1->next == (void*)&tdata->msg->hdr) 
    584584        h2 = NULL; 
    585585    else 
     
    591591    } 
    592592    /* 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 && 
    594594        pjsip_msg_find_hdr(tdata->msg, PJSIP_H_CONTACT, h2->next) != NULL) 
    595595    { 
     
    661661            goto on_return; 
    662662        } 
    663         if (h1->next == (pjsip_contact_hdr*)&tdata->msg->hdr) 
     663        if ((void*)h1->next == (void*)&tdata->msg->hdr) 
    664664            h2 = NULL; 
    665665        else 
     
    671671        } 
    672672        /* 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 && 
    674674            pjsip_msg_find_hdr(tdata->msg, PJSIP_H_CONTACT, h2->next) != NULL) 
    675675        { 
Note: See TracChangeset for help on using the changeset viewer.