@@ -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;
@@ -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()