From 4a9670dd7611f7099912f5326cadb5cdc64393c0 Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Thu, 9 Oct 1997 07:17:36 +0000 Subject: Use err(3). Add usage(). Correct the .Nd string: in real life, portmap is translating rpc prog numbers to darpa ports, not the opposite. --- usr.sbin/portmap/from_local.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'usr.sbin/portmap/from_local.c') diff --git a/usr.sbin/portmap/from_local.c b/usr.sbin/portmap/from_local.c index 6554de4f4a621..a1bfa72180224 100644 --- a/usr.sbin/portmap/from_local.c +++ b/usr.sbin/portmap/from_local.c @@ -36,8 +36,12 @@ */ #ifndef lint +#if 0 static char sccsid[] = "@(#) from_local.c 1.2 93/11/16 21:50:02"; #endif +static const char rcsid[] = + "$Id$"; +#endif #ifdef TEST #undef perror @@ -50,6 +54,7 @@ static char sccsid[] = "@(#) from_local.c 1.2 93/11/16 21:50:02"; #include #include +#include #include #include @@ -67,6 +72,7 @@ static struct in_addr addrs[MAX_LOCAL]; /* find_local - find all IP addresses for this host */ +int find_local() { struct ifconf ifc; @@ -119,6 +125,7 @@ find_local() /* from_local - determine whether request comes from the local system */ +int from_local(addr) struct sockaddr_in *addr; { -- cgit v1.2.3