From 72606bd24b5a939819d9dadc84fc7ec891cff643 Mon Sep 17 00:00:00 2001 From: cracauer Date: Thu, 20 Apr 2000 09:49:16 +0000 Subject: Fix warnings, some of them serious because sh violated name spaces reserved by the header files it includes. mkinit.c still produces C code with redundant declarations, although they are more harmless since they automatically derived from the right places. --- bin/sh/histedit.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'bin/sh/histedit.c') diff --git a/bin/sh/histedit.c b/bin/sh/histedit.c index 798118b..6ff6070 100644 --- a/bin/sh/histedit.c +++ b/bin/sh/histedit.c @@ -168,8 +168,6 @@ histcmd(argc, argv) int argc; char **argv; { - extern char *optarg; - extern int optind, optopt, optreset; int ch; char *editor = NULL; const HistEvent *he; @@ -210,7 +208,7 @@ histcmd(argc, argv) (ch = getopt(argc, argv, ":e:lnrs")) != -1) switch ((char)ch) { case 'e': - editor = optarg; + editor = shoptarg; break; case 'l': lflg = 1; -- cgit v1.1