summaryrefslogtreecommitdiff
path: root/usr.sbin/ypbind
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-01-30 06:03:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-01-30 06:03:09 +0000
commitfd1d4eb6096ae0195031936b9e99f83b00b69b76 (patch)
tree6f99587e9dcbdf8e520d018cf383d74d44e26aaa /usr.sbin/ypbind
parentda162ff554fed0189ed4d55c19e1b3c001f7673b (diff)
no need to recalc width before each select
Diffstat (limited to 'usr.sbin/ypbind')
-rw-r--r--usr.sbin/ypbind/ypbind.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.sbin/ypbind/ypbind.c b/usr.sbin/ypbind/ypbind.c
index 94666fda9e0..4ceaa900523 100644
--- a/usr.sbin/ypbind/ypbind.c
+++ b/usr.sbin/ypbind/ypbind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ypbind.c,v 1.16 1997/01/30 02:01:54 deraadt Exp $ */
+/* $OpenBSD: ypbind.c,v 1.17 1997/01/30 06:03:08 deraadt Exp $ */
/*
* Copyright (c) 1996 Theo de Raadt <deraadt@theos.com>
@@ -34,7 +34,7 @@
*/
#ifndef LINT
-static char rcsid[] = "$OpenBSD: ypbind.c,v 1.16 1997/01/30 02:01:54 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ypbind.c,v 1.17 1997/01/30 06:03:08 deraadt Exp $";
#endif
#include <sys/param.h>
@@ -496,14 +496,14 @@ main(argc, argv)
checkwork();
- while (1) {
- width = svc_maxfd;
- if (rpcsock > width)
- width = rpcsock;
- if (pingsock > width)
- width = pingsock;
- width++;
+ width = svc_maxfd;
+ if (rpcsock > width)
+ width = rpcsock;
+ if (pingsock > width)
+ width = pingsock;
+ width++;
+ while (1) {
fdsr = svc_fdset;
FD_SET(rpcsock, &fdsr);
FD_SET(pingsock, &fdsr);