X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=comstack%2Ftcpip.c;h=36cc696551b5af4acf6ef7a963757829826d993d;hp=40e3d619e493d19d7aec72422ff56f9f44a6dbbf;hb=c03149b852e2937bd0637b21c3058a48dd25a739;hpb=48096bb041fcc45b11666ad058963a633a0ec3db 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);