diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-07-03 08:59:09 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-07-03 08:59:09 (GMT) |
commit | 950488656e09b8da52835a7abe385816f571e607 (patch) | |
tree | 73351647023edadbb01467b31b34cceea9cd17cf /win | |
parent | 897293c4c13d94223af9ebf03798a5ddcf08dcb6 (diff) | |
download | tcl-950488656e09b8da52835a7abe385816f571e607.zip tcl-950488656e09b8da52835a7abe385816f571e607.tar.gz tcl-950488656e09b8da52835a7abe385816f571e607.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);
^
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinSock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c index 4ced0e7..f4d5a90 100644 --- a/win/tclWinSock.c +++ b/win/tclWinSock.c @@ -1131,9 +1131,10 @@ CreateSocket( int asyncConnect = 0; /* Will be 1 if async connect is in * progress. */ unsigned short chosenport = 0; - struct addrinfo *addrlist = NULL, *addrPtr; + void *addrlist = NULL, *myaddrlist = NULL; + struct addrinfo *addrPtr; /* Socket address to connect to. */ - struct addrinfo *myaddrlist = NULL, *myaddrPtr; + struct addrinfo *myaddrPtr; /* Socket address for our side. */ const char *errorMsg = NULL; SOCKET sock = INVALID_SOCKET; |