summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-06-24 15:45:38 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-06-24 15:45:38 -0700
commit302af17c4d5f0293a9af4d6c1097ab57a57d3f0f (patch)
treecc6f45f42e1525e3440111a58bfed1e2e0bcd101
parent4d184e41d30a8fe27380e04beb24f775d4a40782 (diff)
Clear some pointer type mismatch warnings
-rw-r--r--Xtranssock.c4
1 files changed, 2 insertions, 2 deletions
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;
}