VirtualBox

Ignore:
Timestamp:
Jan 14, 2010 9:09:04 AM (15 years ago)
Author:
vboxsync
Message:

NAT: -Wshadow fixes. Use RT_N2H and RT_H2N instead of ntoh and hton because the latter trigger this warning as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/ip.h

    r17191 r25822  
    5555#else
    5656# ifndef NTOHL
    57 #  define NTOHL(d) ((d) = ntohl((d)))
     57#  define NTOHL(d) ((d) = RT_N2H_U32((d)))
    5858# endif
    5959# ifndef NTOHS
    60 #  define NTOHS(d) ((d) = ntohs((u_int16_t)(d)))
     60#  define NTOHS(d) ((d) = RT_N2H_U16((u_int16_t)(d)))
    6161# endif
    6262# ifndef HTONL
    63 #  define HTONL(d) ((d) = htonl((d)))
     63#  define HTONL(d) ((d) = RT_H2N_U32((d)))
    6464# endif
    6565# ifndef HTONS
    66 #  define HTONS(d) ((d) = htons((u_int16_t)(d)))
     66#  define HTONS(d) ((d) = RT_H2N_U16((u_int16_t)(d)))
    6767# endif
    6868#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette