diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2001-02-12 00:59:18 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2001-02-12 00:59:18 +0000 |
commit | 356b686774968d312476b66d0c1fb1f21c46305a (patch) | |
tree | 2f5aaf6e6add6d81e463d41609bd2f3cd5107d0a /libc/inet/rpc/svc_tcp.c | |
parent | e57fc6bbb2e98f9ef3336db698dc7dd260dfc502 (diff) |
Clean up lots of warnings.
Diffstat (limited to 'libc/inet/rpc/svc_tcp.c')
-rw-r--r-- | libc/inet/rpc/svc_tcp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/inet/rpc/svc_tcp.c b/libc/inet/rpc/svc_tcp.c index 64527f84d..082f51464 100644 --- a/libc/inet/rpc/svc_tcp.c +++ b/libc/inet/rpc/svc_tcp.c @@ -45,7 +45,7 @@ #include <rpc/rpc.h> #include <sys/socket.h> #include <errno.h> -extern errno; +#include <unistd.h> /* * Ops vector for TCP/IP based rpc service handle @@ -72,6 +72,7 @@ static struct xp_ops svctcp_op = { static bool_t rendezvous_request(); static enum xprt_stat rendezvous_stat(); +#warning Expect 3 warnings for initialization from incompatible pointer type static struct xp_ops svctcp_rendezvous_op = { rendezvous_request, rendezvous_stat, @@ -300,7 +301,7 @@ register int len; #endif /* def FD_SETSIZE */ do { readfds = mask; - if (select(_rpc_dtablesize(), &readfds, (int *) NULL, (int *) NULL, + if (select(_rpc_dtablesize(), &readfds, NULL, NULL, &wait_per_try) <= 0) { if (errno == EINTR) { continue; |