summaryrefslogtreecommitdiff
path: root/libc/inet/rpc/bindresvport.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-15 13:18:42 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-15 13:18:42 +0000
commit51d2e12a88732c8d63311564fd4df090ac3d3608 (patch)
treeb85c9429c196972dcd6f7c69e0e859d87ae514c3 /libc/inet/rpc/bindresvport.c
parent67fb342b086501f95fdadb3cf69ff9abb7a714e7 (diff)
I've been working on fixing up the rpc crap. now it is only
_mostly_ broken, a big improvement. Still doesn't compile...
Diffstat (limited to 'libc/inet/rpc/bindresvport.c')
-rw-r--r--libc/inet/rpc/bindresvport.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libc/inet/rpc/bindresvport.c b/libc/inet/rpc/bindresvport.c
index 6a6f385cd..e08994df6 100644
--- a/libc/inet/rpc/bindresvport.c
+++ b/libc/inet/rpc/bindresvport.c
@@ -1,6 +1,3 @@
-static char sccsid[] =
-
- "@(#)bindresvport.c 2.2 88/07/29 4.0 RPCSRC 1.8 88/02/08 SMI";
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
@@ -34,6 +31,8 @@ static char sccsid[] =
* Copyright (c) 1987 by Sun Microsystems, Inc.
*/
+#include <unistd.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/socket.h>
@@ -42,7 +41,7 @@ static char sccsid[] =
/*
* Bind a socket to a privileged IP port
*/
-bindresvport(sd, sin)
+int bindresvport(sd, sin)
int sd;
struct sockaddr_in *sin;
{