From badfd68aef1343c35e69733a59f5d6f83968c83d Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 17 Apr 2000 21:52:14 +0000 Subject: [PATCH] networking code fixes --- WINGs/connection.c | 9 +++------ WINGs/host.c | 11 ++++++----- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/WINGs/connection.c b/WINGs/connection.c index 941ed98c..f0988128 100644 --- a/WINGs/connection.c +++ b/WINGs/connection.c @@ -53,13 +53,13 @@ # define SHUT_RDWR 2 #endif -/* for SunOS */ +/* For SunOS */ #ifndef SA_RESTART # define SA_RESTART 0 #endif -/* For some Solaris systems */ -#if !defined(HAVE_INET_ATON) && !defined(INADDR_NONE) +/* For Solaris */ +#ifndef INADDR_NONE # define INADDR_NONE (-1) #endif @@ -79,8 +79,6 @@ int WCErrorCode = 0; - - static Bool SigInitialized = False; @@ -91,7 +89,6 @@ typedef struct TimeoutData { } TimeoutData; - typedef struct W_Connection { int sock; /* the socket we speak through */ diff --git a/WINGs/host.c b/WINGs/host.c index 84c532e2..0e631753 100644 --- a/WINGs/host.c +++ b/WINGs/host.c @@ -31,11 +31,14 @@ #include "WUtil.h" -/* For some Solaris systems */ -#if !defined(HAVE_INET_ATON) && !defined(INADDR_NONE) +/* For Solaris */ +#ifndef INADDR_NONE # define INADDR_NONE (-1) #endif +/* Max hostname length (RFC 1123) */ +#define W_MAXHOSTNAMELEN 255 + typedef struct W_Host { char *name; @@ -48,11 +51,9 @@ typedef struct W_Host { static WMHashTable *hostCache = NULL; -static Bool hostCacheEnabled = True; +static Bool hostCacheEnabled = True; -/* Max hostname length (RFC 1123) */ -#define W_MAXHOSTNAMELEN 255 static WMHost* -- 2.11.4.GIT