mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
networking code fixes
This commit is contained in:
@@ -53,13 +53,13 @@
|
|||||||
# define SHUT_RDWR 2
|
# define SHUT_RDWR 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* for SunOS */
|
/* For SunOS */
|
||||||
#ifndef SA_RESTART
|
#ifndef SA_RESTART
|
||||||
# define SA_RESTART 0
|
# define SA_RESTART 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* For some Solaris systems */
|
/* For Solaris */
|
||||||
#if !defined(HAVE_INET_ATON) && !defined(INADDR_NONE)
|
#ifndef INADDR_NONE
|
||||||
# define INADDR_NONE (-1)
|
# define INADDR_NONE (-1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -79,8 +79,6 @@
|
|||||||
|
|
||||||
int WCErrorCode = 0;
|
int WCErrorCode = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static Bool SigInitialized = False;
|
static Bool SigInitialized = False;
|
||||||
|
|
||||||
|
|
||||||
@@ -91,7 +89,6 @@ typedef struct TimeoutData {
|
|||||||
} TimeoutData;
|
} TimeoutData;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct W_Connection {
|
typedef struct W_Connection {
|
||||||
int sock; /* the socket we speak through */
|
int sock; /* the socket we speak through */
|
||||||
|
|
||||||
|
|||||||
11
WINGs/host.c
11
WINGs/host.c
@@ -31,11 +31,14 @@
|
|||||||
#include "WUtil.h"
|
#include "WUtil.h"
|
||||||
|
|
||||||
|
|
||||||
/* For some Solaris systems */
|
/* For Solaris */
|
||||||
#if !defined(HAVE_INET_ATON) && !defined(INADDR_NONE)
|
#ifndef INADDR_NONE
|
||||||
# define INADDR_NONE (-1)
|
# define INADDR_NONE (-1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Max hostname length (RFC 1123) */
|
||||||
|
#define W_MAXHOSTNAMELEN 255
|
||||||
|
|
||||||
|
|
||||||
typedef struct W_Host {
|
typedef struct W_Host {
|
||||||
char *name;
|
char *name;
|
||||||
@@ -48,12 +51,10 @@ typedef struct W_Host {
|
|||||||
|
|
||||||
|
|
||||||
static WMHashTable *hostCache = NULL;
|
static WMHashTable *hostCache = NULL;
|
||||||
|
|
||||||
static Bool hostCacheEnabled = True;
|
static Bool hostCacheEnabled = True;
|
||||||
|
|
||||||
|
|
||||||
/* Max hostname length (RFC 1123) */
|
|
||||||
#define W_MAXHOSTNAMELEN 255
|
|
||||||
|
|
||||||
|
|
||||||
static WMHost*
|
static WMHost*
|
||||||
getHostFromCache(char *name)
|
getHostFromCache(char *name)
|
||||||
|
|||||||
Reference in New Issue
Block a user