From c3737982569ecec3537f1b8748e164c1d9151509 Mon Sep 17 00:00:00 2001 From: patthoyts Date: Fri, 13 Jun 2003 22:08:24 +0000 Subject: [PATCH] Cleaned up some -Wall warnings under unix. --- generic/udp_tcl.c | 6 +++--- generic/udp_tcl.h | 20 ++++++++++++++------ 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/generic/udp_tcl.c b/generic/udp_tcl.c index 1caec16..f2f7c30 100644 --- a/generic/udp_tcl.c +++ b/generic/udp_tcl.c @@ -417,12 +417,12 @@ udpPeek(ClientData clientData, Tcl_Interp *interp, { #ifndef WIN32 int buffer_size = 16; - int actual_size, socksize, port; + int actual_size, socksize; int sock; char message[17]; - char *remotehost; - struct hostent *name; + /*struct hostent *name;*/ #ifdef SIPC_IPV6 + char *remotehost; struct sockaddr_in6 recvaddr; #else struct sockaddr_in recvaddr; diff --git a/generic/udp_tcl.h b/generic/udp_tcl.h index 8ebdf08..5f7265c 100644 --- a/generic/udp_tcl.h +++ b/generic/udp_tcl.h @@ -13,13 +13,21 @@ #define UDP_TCL_H #ifdef WIN32 -#include +# include #else -#include -#include -#include -#include -#include +# if HAVE_UNISTD_H +# include +# endif +# if HAVE_STDLIB_H +# include +# endif +# if HAVE_SYS_TIME_H +# include +# endif +# include +# include +# include +# include #endif #include -- 2.23.0