X-Git-Url: https://git.distorted.org.uk/~mdw/fwd/blobdiff_plain/9155ea97b695b6eb5fca1ee79f57b334f6c4ef53..755e6619263d316dc46fa504e0c333c963ec8eaa:/inet.c diff --git a/inet.c b/inet.c index faa250e..ad93beb 100644 --- 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 --- */