summaryrefslogtreecommitdiff
path: root/bin/ed
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-01-22 20:25:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-01-22 20:25:09 +0000
commit43f555732483fd1b60a70968b71d3a01ef7d446a (patch)
tree9ac7c483eb8edd88cdb16e5f49b4c235f85c0eba /bin/ed
parenta9e755d6a11ddb61c8eb50d4307c9611f1951a53 (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.c8
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)