Rob Shearman : include: Wrap uses of u_* types in ws2tcpip.h with WS() macro.

Alexandre Julliard julliard at winehq.org
Wed Oct 1 14:09:40 CDT 2008


Module: wine
Branch: master
Commit: d82e36fa4a8185a52fc3ea91b413bd19f5b54fc7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d82e36fa4a8185a52fc3ea91b413bd19f5b54fc7

Author: Rob Shearman <robertshearman at gmail.com>
Date:   Wed Oct  1 11:20:09 2008 +0100

include: Wrap uses of u_* types in ws2tcpip.h with WS() macro.

---

 include/ws2tcpip.h |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/include/ws2tcpip.h b/include/ws2tcpip.h
index 9a68e24..885b60e 100644
--- a/include/ws2tcpip.h
+++ b/include/ws2tcpip.h
@@ -80,30 +80,30 @@ struct WS(ip_mreq_source) {
 struct WS(ip_msfilter) {
     struct WS(in_addr) imsf_multiaddr;
     struct WS(in_addr) imsf_interface;
-    u_long             imsf_fmode;
-    u_long             imsf_numsrc;
+    WS(u_long)         imsf_fmode;
+    WS(u_long)         imsf_numsrc;
     struct WS(in_addr) imsf_slist[1];
 };
 
 typedef struct WS(in_addr6)
 {
-   u_char s6_addr[16];   /* IPv6 address */
+   WS(u_char) s6_addr[16]; /* IPv6 address */
 } IN6_ADDR, *PIN6_ADDR, *LPIN6_ADDR;
 
 typedef struct WS(sockaddr_in6)
 {
    short   sin6_family;            /* AF_INET6 */
-   u_short sin6_port;              /* Transport level port number */
-   u_long  sin6_flowinfo;          /* IPv6 flow information */
+   WS(u_short) sin6_port;          /* Transport level port number */
+   WS(u_long) sin6_flowinfo;       /* IPv6 flow information */
    struct  WS(in_addr6) sin6_addr; /* IPv6 address */
-   u_long  sin6_scope_id;          /* IPv6 scope id */
+   WS(u_long) sin6_scope_id;       /* IPv6 scope id */
 } SOCKADDR_IN6,*PSOCKADDR_IN6, *LPSOCKADDR_IN6;
 
 typedef struct WS(sockaddr_in6_old)
 {
    short   sin6_family;            /* AF_INET6 */
-   u_short sin6_port;              /* Transport level port number */
-   u_long  sin6_flowinfo;          /* IPv6 flow information */
+   WS(u_short) sin6_port;              /* Transport level port number */
+   WS(u_long) sin6_flowinfo;          /* IPv6 flow information */
    struct  WS(in_addr6) sin6_addr; /* IPv6 address */
 } SOCKADDR_IN6_OLD,*PSOCKADDR_IN6_OLD, *LPSOCKADDR_IN6_OLD;
 
@@ -117,7 +117,7 @@ typedef union sockaddr_gen
 /* Structure to keep interface specific information */
 typedef struct _INTERFACE_INFO
 {
-    u_long            iiFlags;             /* Interface flags */
+    WS(u_long)        iiFlags;             /* Interface flags */
     WS(sockaddr_gen)  iiAddress;           /* Interface address */
     WS(sockaddr_gen)  iiBroadcastAddress;  /* Broadcast address */
     WS(sockaddr_gen)  iiNetmask;           /* Network mask */




More information about the wine-cvs mailing list