configure.ac, inet.c, un.c: Portability fixes for 64-bit socketry.
[fwd] / inet.c
diff --git a/inet.c b/inet.c
index faa250e..ad93beb 100644 (file)
--- a/inet.c
+++ b/inet.c
@@ -234,7 +234,7 @@ static int srcopt(scanner *sc, addr_opts *ao)
       /* --- Find the netmask, if any --- */
 
       if (sc->t != '/')
-       m.s_addr = ~0ul;
+       m.s_addr = (in_addr_t)~0ul;
       else {
        token(sc);
        DRESET(&d);
@@ -365,7 +365,7 @@ static reffd *inet_accept(int fd, addr_opts *ao, const char *desc)
   inet_srcopts *io = (inet_srcopts *)ao;
   int nfd;
   id_req q;
-  size_t lsinsz = sizeof(q.lsin), rsinsz = sizeof(q.rsin);
+  socklen_t lsinsz = sizeof(q.lsin), rsinsz = sizeof(q.rsin);
   int act = ACL_ALLOW;
 
   /* --- Accept the new connection --- */