unistd.h for prototypes, fix a couple of bogus casts to select()'s args

This commit is contained in:
cgd 1996-12-20 20:24:36 +00:00
parent 018a568c63
commit e8cd914914
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: svc_run.c,v 1.6 1995/02/25 03:02:00 cgd Exp $ */
/* $NetBSD: svc_run.c,v 1.7 1996/12/20 20:24:36 cgd Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@ -32,7 +32,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)svc_run.c 1.1 87/10/13 Copyr 1984 Sun Micro";*/
/*static char *sccsid = "from: @(#)svc_run.c 2.1 88/07/29 4.0 RPCSRC";*/
static char *rcsid = "$NetBSD: svc_run.c,v 1.6 1995/02/25 03:02:00 cgd Exp $";
static char *rcsid = "$NetBSD: svc_run.c,v 1.7 1996/12/20 20:24:36 cgd Exp $";
#endif
/*
@ -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, (fd_set *)0, (fd_set *)0,
(struct timeval *)0)) {
case -1:
if (errno == EINTR) {