summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authormax <max@tclers.tk>2013-11-18 13:32:30 (GMT)
committermax <max@tclers.tk>2013-11-18 13:32:30 (GMT)
commit9b104b7167d18325a28a7e1c3891ce8513249e23 (patch)
treec561fb12851610556220bebcb1839b9d616d4e41 /unix
parent643e5bc24ed7dd6a21ca1a562693d0d9ce4f2651 (diff)
downloadtcl-9b104b7167d18325a28a7e1c3891ce8513249e23.zip
tcl-9b104b7167d18325a28a7e1c3891ce8513249e23.tar.gz
tcl-9b104b7167d18325a28a7e1c3891ce8513249e23.tar.bz2
Revert [3c0b0bbda6]. If this really is a problem, it needs to get fixed by other means than covering behind void pointers.
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixSock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c
index 7ef28d8..49a6460 100644
--- a/unix/tclUnixSock.c
+++ b/unix/tclUnixSock.c
@@ -1140,7 +1140,7 @@ Tcl_OpenTcpClient(
{
TcpState *state;
const char *errorMsg = NULL;
- void *addrlist = NULL, *myaddrlist = NULL;
+ struct addrinfo *addrlist = NULL, *myaddrlist = NULL;
char channelName[SOCK_CHAN_LENGTH];
/*
@@ -1285,8 +1285,7 @@ Tcl_OpenTcpServer(
ClientData acceptProcData) /* Data for the callback. */
{
int status = 0, sock = -1, reuseaddr = 1, chosenport = 0;
- void *addrlist = NULL;
- struct addrinfo *addrPtr; /* socket address */
+ struct addrinfo *addrlist = NULL, *addrPtr; /* socket address */
TcpState *statePtr = NULL;
char channelName[SOCK_CHAN_LENGTH];
const char *errorMsg = NULL;