diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-01-22 20:25:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-01-22 20:25:09 +0000 |
commit | 43f555732483fd1b60a70968b71d3a01ef7d446a (patch) | |
tree | 9ac7c483eb8edd88cdb16e5f49b4c235f85c0eba /bin/ed | |
parent | a9e755d6a11ddb61c8eb50d4307c9611f1951a53 (diff) |
remove extra externs not needed because of unistd.h (rest of tree will be done later.. contact me if you want to help)
Diffstat (limited to 'bin/ed')
-rw-r--r-- | bin/ed/main.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bin/ed/main.c b/bin/ed/main.c index 1e4fdc5ebb1..b033ed71ee3 100644 --- a/bin/ed/main.c +++ b/bin/ed/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.16 1999/12/05 02:37:55 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.17 2000/01/22 20:24:49 deraadt Exp $ */ /* $NetBSD: main.c,v 1.3 1995/03/21 09:04:44 cgd Exp $ */ /* main.c: This file contains the main control and user-interface routines @@ -39,7 +39,7 @@ char *copyright = #if 0 static char *rcsid = "@(#)main.c,v 1.1 1994/02/01 00:34:42 alm Exp"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.16 1999/12/05 02:37:55 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.17 2000/01/22 20:24:49 deraadt Exp $"; #endif #endif /* not lint */ @@ -64,6 +64,7 @@ static char rcsid[] = "$OpenBSD: main.c,v 1.16 1999/12/05 02:37:55 deraadt Exp $ #include <sys/wait.h> #include <ctype.h> #include <setjmp.h> +#include <unistd.h> #include <pwd.h> #include "ed.h" @@ -106,9 +107,6 @@ char *dps = "*"; /* default command-line prompt */ char *usage = "usage: %s [-] [-sx] [-p string] [name]\n"; -extern int optind; -extern char *optarg; - /* ed: line editor */ int main(argc, argv) |