From 92e651c94081bce33cfd2c03e3231e0799a3e751 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 14 May 2002 17:52:50 +0000 Subject: 17162: Src/Modules/tcp.c: prevent warning on gethostbyaddr() arguments. --- Src/Modules/tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/Modules') diff --git a/Src/Modules/tcp.c b/Src/Modules/tcp.c index c70d5bf69..78ce386db 100644 --- a/Src/Modules/tcp.c +++ b/Src/Modules/tcp.c @@ -565,12 +565,12 @@ bin_ztcp(char *nam, char **args, char *ops, int func) if (sess->fd != -1) { - zthost = gethostbyaddr(&(sess->sock.in.sin_addr), sizeof(struct sockaddr_in), AF_INET); + zthost = gethostbyaddr((const void *)&(sess->sock.in.sin_addr), sizeof(struct sockaddr_in), AF_INET); if (zthost) localname = zthost->h_name; else localname = ztrdup(inet_ntoa(sess->sock.in.sin_addr)); - ztpeer = gethostbyaddr(&(sess->peer.in.sin_addr), sizeof(struct sockaddr_in), AF_INET); + ztpeer = gethostbyaddr((const void *)&(sess->peer.in.sin_addr), sizeof(struct sockaddr_in), AF_INET); if (ztpeer) remotename = ztpeer->h_name; else -- cgit 1.4.1