Commit 76f6ffaf authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Fix the SOCKADDR_IPX declaration.

Centralize all sockaddr_xxx conversions in ws_sockaddr_ws2u and ws_sockaddr_u2ws. Remove ugly casts in TRACEs.
parent b85a6e8c
...@@ -441,17 +441,6 @@ INT WINAPI WSARecvEx(SOCKET s, char *buf, INT len, INT *flags); ...@@ -441,17 +441,6 @@ INT WINAPI WSARecvEx(SOCKET s, char *buf, INT len, INT *flags);
#define WS_AF_MAX 27 #define WS_AF_MAX 27
#include "pshpack1.h"
struct ws_sockaddr_ipx
{
SHORT sipx_family;
UINT sipx_network;
CHAR sipx_node[6];
WORD sipx_port;
};
#include "poppack.h"
#ifdef __cplusplus #ifdef __cplusplus
} }
......
/* WCIPX.H /* WCIPX.H
*/ */
#ifndef _WINE_WCIPX_ #ifndef _WINE_WSIPX_
#define _WINE_WCIPX_ #define _WINE_WSIPX_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif /* defined(__cplusplus) */ #endif /* defined(__cplusplus) */
typedef struct ws_sockaddr_ipx
{
short sa_family;
char sa_netnum[4];
char sa_nodenum[6];
unsigned short sa_socket;
} SOCKADDR_IPX, *PSOCKADDR_IPX, *LPSOCKADDR_IPX;
/* /*
* constants * constants
*/ */
...@@ -20,4 +28,4 @@ extern "C" { ...@@ -20,4 +28,4 @@ extern "C" {
} /* extern "C" */ } /* extern "C" */
#endif /* defined(__cplusplus) */ #endif /* defined(__cplusplus) */
#endif /* _WINE_WCIPX_ */ #endif /* _WINE_WSIPX_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment