From 302af17c4d5f0293a9af4d6c1097ab57a57d3f0f Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 24 Jun 2008 15:45:38 -0700 Subject: Clear some pointer type mismatch warnings --- Xtranssock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Xtranssock.c') diff --git a/Xtranssock.c b/Xtranssock.c index 309839c..ff37782 100644 --- a/Xtranssock.c +++ b/Xtranssock.c @@ -566,10 +566,10 @@ TRANS(SocketReopen) (int i, int type, int fd, char *port) PRMSG (1, "SocketReopen: malloc(addr) failed\n", 0, 0, 0); return NULL; } - ciptr->addr = addr; + ciptr->addr = (char *) addr; ciptr->addrlen = portlen + 2; - if ((ciptr->peeraddr = (struct sockaddr *) xcalloc (1, portlen + 2)) == NULL) { + if ((ciptr->peeraddr = (char *) xcalloc (1, portlen + 2)) == NULL) { PRMSG (1, "SocketReopen: malloc(portaddr) failed\n", 0, 0, 0); return NULL; } -- cgit v1.2.3