From b07b8563ff4c0802ccb1cefdc6aca67c8896c6d1 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 4 Sep 2000 05:59:25 +0000 Subject: [PATCH] optarg and optind are declared in unistd.h. h_error is declared in netdb.h --- usr.bin/fold/fold.c | 2 -- usr.bin/from/from.c | 2 -- usr.bin/ftp/ftp.c | 2 -- 3 files changed, 6 deletions(-) diff --git a/usr.bin/fold/fold.c b/usr.bin/fold/fold.c index 386caaffcea2..e402ae5bb316 100644 --- a/usr.bin/fold/fold.c +++ b/usr.bin/fold/fold.c @@ -64,8 +64,6 @@ main(argc, argv) int argc; char **argv; { - extern int optind; - extern char *optarg; register int ch; int width; char *p; diff --git a/usr.bin/from/from.c b/usr.bin/from/from.c index 6b3320712f06..ff3581d25e8d 100644 --- a/usr.bin/from/from.c +++ b/usr.bin/from/from.c @@ -63,8 +63,6 @@ main(argc, argv) int argc; char **argv; { - extern char *optarg; - extern int optind; struct passwd *pwd; int ch, count, newline; char *file, *sender, *p; diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c index 1862333608c4..abbad7f49712 100644 --- a/usr.bin/ftp/ftp.c +++ b/usr.bin/ftp/ftp.c @@ -76,8 +76,6 @@ __RCSID_SOURCE("$NetBSD: ftp.c,v 1.29.2.1 1997/11/18 01:01:04 mellon Exp $"); #define NI_WITHSCOPEID 0 #endif -extern int h_errno; - int data = -1; int abrtflag = 0; jmp_buf ptabort;