summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/svc_run.c
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1996-03-25 21:54:35 +0000
committertholo <tholo@openbsd.org>1996-03-25 21:54:35 +0000
commit48dcfcdaab65b07f702d337324f16d9469ae9bcd (patch)
tree684cd9bccfa9ce74fa67d2228ceb079d923750ae /lib/libc/rpc/svc_run.c
parentPrototype internal functions (diff)
downloadwireguard-openbsd-48dcfcdaab65b07f702d337324f16d9469ae9bcd.tar.xz
wireguard-openbsd-48dcfcdaab65b07f702d337324f16d9469ae9bcd.zip
Pull prototypes into scope
Remove graticious casts
Diffstat (limited to 'lib/libc/rpc/svc_run.c')
-rw-r--r--lib/libc/rpc/svc_run.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/rpc/svc_run.c b/lib/libc/rpc/svc_run.c
index 29d7ddd94f3..fe44f8c9821 100644
--- a/lib/libc/rpc/svc_run.c
+++ b/lib/libc/rpc/svc_run.c
@@ -41,6 +41,7 @@ static char *rcsid = "$NetBSD: svc_run.c,v 1.6 1995/02/25 03:02:00 cgd Exp $";
*/
#include <rpc/rpc.h>
#include <sys/errno.h>
+#include <unistd.h>
void
svc_run()
@@ -49,7 +50,7 @@ svc_run()
for (;;) {
readfds = svc_fdset;
- switch (select(svc_maxfd+1, &readfds, (int *)0, (int *)0,
+ switch (select(svc_maxfd+1, &readfds, 0, 0,
(struct timeval *)0)) {
case -1:
if (errno == EINTR) {