diff options
author | David McCullough <davidm@snapgear.com> | 2001-05-04 00:46:29 +0000 |
---|---|---|
committer | David McCullough <davidm@snapgear.com> | 2001-05-04 00:46:29 +0000 |
commit | 0f54aa4d170ec57806c66720b5055a8bffdd47ce (patch) | |
tree | bc5aeca88dc13757c73491e2d4b207e1c0daa660 /libc/inet/rpc | |
parent | db0fb358ce066657ade7475e259afe7680f7e7a9 (diff) |
Clean up some issues for building on m68k.
Diffstat (limited to 'libc/inet/rpc')
-rw-r--r-- | libc/inet/rpc/get_myaddress.c | 2 | ||||
-rw-r--r-- | libc/inet/rpc/getrpcent.c | 7 |
2 files changed, 2 insertions, 7 deletions
diff --git a/libc/inet/rpc/get_myaddress.c b/libc/inet/rpc/get_myaddress.c index 53cebe81c..333dbabc8 100644 --- a/libc/inet/rpc/get_myaddress.c +++ b/libc/inet/rpc/get_myaddress.c @@ -70,7 +70,7 @@ struct sockaddr_in *addr; /* * don't use gethostbyname, which would invoke yellow pages */ -get_myaddress(addr) +void get_myaddress(addr) struct sockaddr_in *addr; { int s; diff --git a/libc/inet/rpc/getrpcent.c b/libc/inet/rpc/getrpcent.c index 00e67ee6b..31bb6c087 100644 --- a/libc/inet/rpc/getrpcent.c +++ b/libc/inet/rpc/getrpcent.c @@ -36,6 +36,7 @@ */ #include <stdio.h> +#include <string.h> #include <sys/types.h> #include <rpc/rpc.h> #include <netdb.h> @@ -60,12 +61,6 @@ static struct rpcent *interpret(const char *val, int len); struct hostent *gethostent(); char *inet_ntoa(); -#ifndef __linux__ -static char *index(); -#else -char *index(); -#endif - static char RPCDB[] = "/etc/rpc"; static struct rpcdata *_rpcdata() |