mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
socklen_t isn't actually needed in either i_tcp.c or mserv.c if NONET is on!
(also added some more tabbing)
This commit is contained in:
parent
cb93e95847
commit
da07db9ad1
2 changed files with 36 additions and 38 deletions
|
|
@ -182,11 +182,10 @@ typedef unsigned long SOCKET_TYPE;
|
||||||
#define ERRSOCKET (-1)
|
#define ERRSOCKET (-1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef NONET
|
||||||
#if (defined (WATTCP) && !defined (__libsocket_socklen_t)) || defined (USE_WINSOCK1)
|
#if (defined (WATTCP) && !defined (__libsocket_socklen_t)) || defined (USE_WINSOCK1)
|
||||||
typedef int socklen_t;
|
typedef int socklen_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NONET
|
|
||||||
static SOCKET_TYPE mysockets[MAXNETNODES+1] = {ERRSOCKET};
|
static SOCKET_TYPE mysockets[MAXNETNODES+1] = {ERRSOCKET};
|
||||||
static size_t mysocketses = 0;
|
static size_t mysocketses = 0;
|
||||||
static int myfamily[MAXNETNODES+1] = {0};
|
static int myfamily[MAXNETNODES+1] = {0};
|
||||||
|
|
|
||||||
|
|
@ -209,11 +209,10 @@ typedef unsigned long SOCKET_TYPE;
|
||||||
#define ERRSOCKET (-1)
|
#define ERRSOCKET (-1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef NONET
|
||||||
#if (defined (WATTCP) && !defined (__libsocket_socklen_t)) || defined (USE_WINSOCK1)
|
#if (defined (WATTCP) && !defined (__libsocket_socklen_t)) || defined (USE_WINSOCK1)
|
||||||
typedef int socklen_t;
|
typedef int socklen_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NONET
|
|
||||||
static SOCKET_TYPE socket_fd = ERRSOCKET; // WINSOCK socket
|
static SOCKET_TYPE socket_fd = ERRSOCKET; // WINSOCK socket
|
||||||
static struct timeval select_timeout;
|
static struct timeval select_timeout;
|
||||||
static fd_set wset;
|
static fd_set wset;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue