- removed 2 warnings on Solaris
authorAndrei Pelinescu-Onciul <andrei@iptel.org>
Thu, 6 Sep 2001 02:31:30 +0000 (02:31 +0000)
committerAndrei Pelinescu-Onciul <andrei@iptel.org>
Thu, 6 Sep 2001 02:31:30 +0000 (02:31 +0000)
forward.c
udp_server.c

index be2f7c6..64dc6bb 100644 (file)
--- a/forward.c
+++ b/forward.c
@@ -45,7 +45,7 @@ int check_address(unsigned long ip, char *name, int resolver)
        }
        if (resolver&DO_REV_DNS){
                /* try reverse dns */
-               he=gethostbyaddr(&ip, sizeof(ip), AF_INET);
+               he=gethostbyaddr((char*)&ip, sizeof(ip), AF_INET);
                if (strcmp(he->h_name, name)==0)
                        return 0;
                for (i=0; he->h_aliases[i];i++){
index 269a1c2..fdde4f0 100644 (file)
@@ -34,7 +34,7 @@ int udp_init(unsigned long ip, unsigned short port)
        /* set sock opts? */
        optval=1;
        if (setsockopt(udp_sock, SOL_SOCKET, SO_REUSEADDR,
-                                       &optval, sizeof(optval)) ==-1)
+                                       (void*)&optval, sizeof(optval)) ==-1)
        {
                DPrint("ERROR: udp_init: setsockopt: %s\n", strerror());
                goto error;