Slight code rearrangement.
This commit is contained in:
parent
f7befd86e1
commit
1b498d2b39
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: usbd.c,v 1.3 1998/11/25 22:17:08 augustss Exp $ */
|
||||
/* $NetBSD: usbd.c,v 1.4 1998/12/09 00:57:19 augustss Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -156,13 +156,13 @@ main(int argc, char **argv)
|
||||
if (!debug)
|
||||
daemon(0, 0);
|
||||
|
||||
FD_ZERO(&fdset);
|
||||
for (;;) {
|
||||
FD_ZERO(&fdset);
|
||||
for (i = 0; i < ndevs; i++)
|
||||
FD_SET(fds[i], &fdset);
|
||||
timo.tv_usec = 0;
|
||||
timo.tv_sec = itimo;
|
||||
r = select(maxfd+1, &fdset, &fdset, 0, itimo ? &timo : 0);
|
||||
r = select(maxfd+1, 0, &fdset, 0, itimo ? &timo : 0);
|
||||
if (r < 0)
|
||||
warn("select failed\n");
|
||||
for (i = 0; i < ndevs; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user