diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-09-06 18:35:13 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-09-06 18:35:13 +0000 |
commit | bf3ef4a5d5889b762ba9743d44769f699e017e16 (patch) | |
tree | fe248fabb92557f313b861f0970c4818261d16ce /lib/libc/net | |
parent | 69c2bb09342a39c06cee4a393cb24345bb692aec (diff) |
use socklen_t where needed; henning pvalchev ok
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/rcmd.c | 4 | ||||
-rw-r--r-- | lib/libc/net/res_send.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c index be68c599d8c..d3d2d751b5e 100644 --- a/lib/libc/net/rcmd.c +++ b/lib/libc/net/rcmd.c @@ -34,7 +34,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: rcmd.c,v 1.43 2002/05/24 21:22:37 deraadt Exp $"; +static char *rcsid = "$OpenBSD: rcmd.c,v 1.44 2002/09/06 18:35:12 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -216,7 +216,7 @@ rcmd_af(ahost, rport, locuser, remuser, cmd, fd2p, af) } else { char num[8]; int s2 = rresvport_af(&lport, af), s3; - int len = sizeof(from); + socklen_t len = sizeof(from); int fdssize = howmany(MAX(s, s2)+1, NFDBITS) * sizeof(fd_mask); if (s2 < 0) diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c index 81bf23ba9ff..b043e7c9fb7 100644 --- a/lib/libc/net/res_send.c +++ b/lib/libc/net/res_send.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_send.c,v 1.11 2002/02/16 21:27:23 millert Exp $ */ +/* $OpenBSD: res_send.c,v 1.12 2002/09/06 18:35:12 deraadt Exp $ */ /* * ++Copyright++ 1985, 1989, 1993 @@ -64,7 +64,7 @@ static char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93"; static char rcsid[] = "$From: res_send.c,v 8.12 1996/10/08 04:51:06 vixie Exp $"; #else -static char rcsid[] = "$OpenBSD: res_send.c,v 1.11 2002/02/16 21:27:23 millert Exp $"; +static char rcsid[] = "$OpenBSD: res_send.c,v 1.12 2002/09/06 18:35:12 deraadt Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -579,7 +579,7 @@ read_len: struct timeval timeout; fd_set *dsmaskp; struct sockaddr_storage from; - int fromlen; + socklen_t fromlen; if ((s < 0) || vc || (af != nsap->sa_family)) { if (vc) |