summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-06-12 12:37:15 +0000
committerpeter <peter@FreeBSD.org>1998-06-12 12:37:15 +0000
commit33df921953fd1f12415a1f829836d2567e42b497 (patch)
tree39dcbfb9710e7856dee9e5424c704d2a50717a10 /usr.bin
parent15daa2ccfe1c8f125307a3f28b341d72c5511b98 (diff)
downloadFreeBSD-src-33df921953fd1f12415a1f829836d2567e42b497.zip
FreeBSD-src-33df921953fd1f12415a1f829836d2567e42b497.tar.gz
#include <arpa/inet.h>
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rpcinfo/rpcinfo.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/rpcinfo/rpcinfo.c b/usr.bin/rpcinfo/rpcinfo.c
index f6cae71..4b77f34 100644
--- a/usr.bin/rpcinfo/rpcinfo.c
+++ b/usr.bin/rpcinfo/rpcinfo.c
@@ -2,7 +2,7 @@
/*static char sccsid[] = "from: @(#)rpcinfo.c 1.22 87/08/12 SMI";*/
/*static char sccsid[] = "from: @(#)rpcinfo.c 2.2 88/08/11 4.0 RPCSRC";*/
static char rcsid[] =
- "$Id: rpcinfo.c,v 1.6 1997/08/06 06:49:06 charnier Exp $";
+ "$Id: rpcinfo.c,v 1.7 1998/06/09 04:30:56 imp Exp $";
#endif
/*
@@ -54,6 +54,7 @@ static char rcsid[] =
#include <signal.h>
#include <ctype.h>
#include <sys/param.h>
+#include <arpa/inet.h>
#define MAXHOSTLEN 256
@@ -71,8 +72,6 @@ static void usage(/*void*/);
static u_long getprognum(/*char *arg*/);
static u_long getvers(/*char *arg*/);
static void get_inet_address(/*struct sockaddr_in *addr, char *host*/);
-extern u_long inet_addr(); /* in 4.2BSD, arpa/inet.h called that a in_addr */
-extern char *inet_ntoa();
/*
* Functions to be performed.
OpenPOWER on IntegriCloud