Ignore:
Timestamp:
Dec 3, 2007 12:40:58 AM (16 years ago)
Author:
bennylp
Message:

Fixed compilation errors/warnings on Linux with the recent IPv6 commits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transport_tls_ossl.c

    r1552 r1611  
    992992         */ 
    993993        if (listener_addr->sin_addr.s_addr == 0) { 
    994             pj_in_addr hostip; 
    995  
    996             status = pj_gethostip(&hostip); 
     994            pj_sockaddr hostip; 
     995 
     996            status = pj_gethostip(pj_AF_INET(), &hostip); 
    997997            if (status != PJ_SUCCESS) 
    998998                goto on_error; 
    999999 
    1000             listener_addr->sin_addr = hostip; 
     1000            listener_addr->sin_addr = hostip.ipv4.sin_addr; 
    10011001        } 
    10021002 
Note: See TracChangeset for help on using the changeset viewer.