diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2013-07-03 08:59:09 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2013-07-03 08:59:09 (GMT) |
commit | 908ff1ea8854a41d0c3a05976ddf3810fbaa8f80 (patch) | |
tree | d2b3e44f7c7750fb41b29506b8cd8c9de0187271 /unix/tclUnixSock.c | |
parent | 12f2677b2ecd0a586a9b71afa9e1d07e66e149e6 (diff) | |
download | tcl-908ff1ea8854a41d0c3a05976ddf3810fbaa8f80.zip tcl-908ff1ea8854a41d0c3a05976ddf3810fbaa8f80.tar.gz tcl-908ff1ea8854a41d0c3a05976ddf3810fbaa8f80.tar.bz2 |
Fix compiler warning when compiling Itcl 4.0:
In file included from ./generic/itcl2TclOO.c:12:0:
/Tcl/include/tclInt.h:3012:8: warning: ‘struct addrinfo’ declared inside parameter list [enabled by default]
const char **errorMsgPtr);
^
FossilOrigin-Name: 3c0b0bbda6bf5f4f3e51f5c3ed9617507f94a734
Diffstat (limited to 'unix/tclUnixSock.c')
-rw-r--r-- | unix/tclUnixSock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c index 528f009..9c3d7eb 100644 --- a/unix/tclUnixSock.c +++ b/unix/tclUnixSock.c @@ -1131,7 +1131,7 @@ Tcl_OpenTcpClient( { TcpState *state; const char *errorMsg = NULL; - struct addrinfo *addrlist = NULL, *myaddrlist = NULL; + void *addrlist = NULL, *myaddrlist = NULL; char channelName[SOCK_CHAN_LENGTH]; /* @@ -1276,7 +1276,8 @@ Tcl_OpenTcpServer( ClientData acceptProcData) /* Data for the callback. */ { int status = 0, sock = -1, reuseaddr = 1, chosenport = 0; - struct addrinfo *addrlist = NULL, *addrPtr; /* socket address */ + void *addrlist = NULL; + struct addrinfo *addrPtr; /* socket address */ TcpState *statePtr = NULL; char channelName[SOCK_CHAN_LENGTH]; const char *errorMsg = NULL; |