pad field renamed in preparation for multiple address families. Also, don't rely on int being 32 bits.

This commit is contained in:
Pontus Lidman 2000-04-17 19:36:55 +00:00
parent 52dfc473fc
commit 5162359857

View file

@ -53,12 +53,12 @@ struct qsockaddr
typedef struct typedef struct
{ {
#ifdef HAVE_IPV6 #ifdef HAVE_IPV6
unsigned int ip[4]; u_int32_t ip[4];
#else #else
byte ip[4]; byte ip[4];
#endif #endif
unsigned short port; unsigned short port;
unsigned short pad; unsigned short family; // used to be pad, before IPV6
} netadr_t; } netadr_t;
extern netadr_t net_local_adr; extern netadr_t net_local_adr;