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

Fixed gcc warnings about type pruned pointers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.