diff options
author | bde <bde@FreeBSD.org> | 1997-09-01 00:01:50 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-09-01 00:01:50 +0000 |
commit | 5a98f054e15ae871e0bd529ce66b43104139716c (patch) | |
tree | deb0e53e402a5ce3bf43fd2cd1a919f62ac08d85 /tools/tools | |
parent | 31192fc05690cd0034376ac077d684869dc753b2 (diff) | |
download | FreeBSD-src-5a98f054e15ae871e0bd529ce66b43104139716c.zip FreeBSD-src-5a98f054e15ae871e0bd529ce66b43104139716c.tar.gz |
Made this compile again (getopt moved to <unistd.h>).
Fixed usage message.
Diffstat (limited to 'tools/tools')
-rw-r--r-- | tools/tools/ifinfo/ifinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/tools/ifinfo/ifinfo.c b/tools/tools/ifinfo/ifinfo.c index 14023fa..b6d837c 100644 --- a/tools/tools/ifinfo/ifinfo.c +++ b/tools/tools/ifinfo/ifinfo.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: ifinfo.c,v 1.3 1997/02/22 14:08:24 peter Exp $ */ #include <sys/types.h> #include <sys/socket.h> /* for PF_LINK */ @@ -38,6 +38,7 @@ #include <stdlib.h> #include <string.h> #include <sysexits.h> +#include <unistd.h> #include <net/if.h> #include <net/if_types.h> @@ -54,8 +55,7 @@ static printfcn findlink(int); static void usage(const char *argv0) { - fprintf(stderr, "%s: usage:\n\t%s [-i] [ifnames...]\n", - argv0, argv0); + fprintf(stderr, "%s: usage:\n\t%s [-l]\n", argv0, argv0); exit(EX_USAGE); } |