Ignore:
Timestamp:
Jan 24, 2017 5:41:05 AM (8 years ago)
Author:
nanang
Message:

Misc (re #1945): Fixed compile warnings on Android 64bit platforms, e.g: dereferencing type-punned pointer, using uninitialized var.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/sock_bsd.c

    r5444 r5544  
    229229PJ_DEF(char*) pj_inet_ntoa(pj_in_addr inaddr) 
    230230{ 
    231 #if !defined(PJ_LINUX) && !defined(PJ_LINUX_KERNEL) 
     231#if 0 //!defined(PJ_LINUX) && !defined(PJ_LINUX_KERNEL) 
    232232    return inet_ntoa(*(struct in_addr*)&inaddr); 
    233233#else 
    234234    struct in_addr addr; 
    235     addr.s_addr = inaddr.s_addr; 
     235    //addr.s_addr = inaddr.s_addr; 
     236    pj_memcpy(&addr, &inaddr, sizeof(addr)); 
    236237    return inet_ntoa(addr); 
    237238#endif 
Note: See TracChangeset for help on using the changeset viewer.