summaryrefslogtreecommitdiff
path: root/usr.sbin/ypbind
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-06 19:46:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-09-06 19:46:54 +0000
commit9b53e9ca8640f563833e342f07ff3f93b7547231 (patch)
treee11e35259d32805d4ed381b70e61d082e212608e /usr.sbin/ypbind
parent5efcea53a88b922145cd2461d78968fcf420274e (diff)
use more socklen_t; pvalchev
Diffstat (limited to 'usr.sbin/ypbind')
-rw-r--r--usr.sbin/ypbind/ypbind.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c
index 05ec34f0d15..5a77fe99323 100644
--- a/usr.sbin/ypbind/ypbind.c
+++ b/usr.sbin/ypbind/ypbind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypbind.c,v 1.46 2002/07/20 12:14:51 deraadt Exp $ */
+/* $OpenBSD: ypbind.c,v 1.47 2002/09/06 19:46:53 deraadt Exp $ */
/*
* Copyright (c) 1997,1998 Theo de Raadt <deraadt@OpenBSD.org>
@@ -35,7 +35,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypbind.c,v 1.46 2002/07/20 12:14:51 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ypbind.c,v 1.47 2002/09/06 19:46:53 deraadt Exp $";
#endif
#include <sys/param.h>
@@ -344,7 +344,8 @@ main(int argc, char *argv[])
struct sockaddr_in sin;
struct timeval tv;
fd_set fdsr;
- int width, lockfd, len, lsock;
+ int width, lockfd, lsock;
+ socklen_t len;
int evil = 0, one = 1;
DIR *dirp;
struct dirent *dent;
@@ -849,7 +850,8 @@ enum clnt_stat
handle_replies(void)
{
char buf[1400];
- int fromlen, inlen;
+ int inlen;
+ socklen_t fromlen;
struct _dom_binding *ypdb;
struct sockaddr_in raddr;
struct rpc_msg msg;
@@ -899,7 +901,8 @@ enum clnt_stat
handle_ping(void)
{
char buf[1400];
- int fromlen, inlen;
+ int inlen;
+ socklen_t fromlen;
struct _dom_binding *ypdb;
struct sockaddr_in raddr;
struct rpc_msg msg;