From c03149b852e2937bd0637b21c3058a48dd25a739 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 23 Jun 1998 15:37:50 +0000 Subject: [PATCH] Added type cast to prevent warning. --- comstack/tcpip.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/comstack/tcpip.c b/comstack/tcpip.c index 40e3d61..36cc696 100644 --- a/comstack/tcpip.c +++ b/comstack/tcpip.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: tcpip.c,v $ - * Revision 1.22 1998-06-22 11:32:36 adam + * Revision 1.23 1998-06-23 15:37:50 adam + * Added type cast to prevent warning. + * + * Revision 1.22 1998/06/22 11:32:36 adam * Added 'conditional cs_listen' feature. * * Revision 1.21 1998/05/20 09:55:32 adam @@ -462,8 +465,8 @@ int tcpip_listen(COMSTACK h, char *raddr, int *addrlen, *addrlen = 0; #if 1 - if (check_ip && (*check_ip)(cd, &addr.sin_addr, sizeof(addr.sin_addr), - AF_INET)) + if (check_ip && (*check_ip)(cd, (const char *) &addr.sin_addr, + sizeof(addr.sin_addr), AF_INET)) { h->cerrno = CSDENY; close (h->newfd); -- 1.7.10.4