Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sup/source correct 1st arg to select().



details:   https://anonhg.NetBSD.org/src/rev/f85ee819198f
branches:  trunk
changeset: 514832:f85ee819198f
user:      itojun <itojun%NetBSD.org@localhost>
date:      Tue Sep 11 03:32:55 2001 +0000

description:
correct 1st arg to select().

diffstat:

 usr.sbin/sup/source/scmio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bf09bad1d41f -r f85ee819198f usr.sbin/sup/source/scmio.c
--- a/usr.sbin/sup/source/scmio.c       Tue Sep 11 01:25:53 2001 +0000
+++ b/usr.sbin/sup/source/scmio.c       Tue Sep 11 03:32:55 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scmio.c,v 1.8 2001/06/11 01:50:59 wiz Exp $    */
+/*     $NetBSD: scmio.c,v 1.9 2001/09/11 03:32:55 itojun Exp $ */
 
 /*
  * Copyright (c) 1992 Carnegie Mellon University
@@ -466,7 +466,7 @@
                tries = 0;
                for (;;) {
                        imask = 1 << netfile;
-                       if (select(32,(fd_set *)&imask,(fd_set *)0,(fd_set *)0,&timout) < 0)
+                       if (select(netfile + 1,(fd_set *)&imask,(fd_set *)0,(fd_set *)0,&timout) < 0)
                                imask = 1;
                        errno = 0;
                        if (imask)
@@ -720,7 +720,7 @@
                FD_ZERO (&xbits);
                FD_SET (0,&ibits);
                FD_SET (netfile,&ibits);
-               if ((c = select(16, &ibits, &obits, &xbits,
+               if ((c = select(netfile + 1, &ibits, &obits, &xbits,
                                (struct timeval *)NULL)) < 1) {
                        if (c == -1) {
                                if (errno == EINTR) {



Home | Main Index | Thread Index | Old Index