summaryrefslogtreecommitdiffstats
path: root/bin/sh/histedit.c
diff options
context:
space:
mode:
authorcracauer <cracauer@FreeBSD.org>2000-04-20 09:49:16 +0000
committercracauer <cracauer@FreeBSD.org>2000-04-20 09:49:16 +0000
commit72606bd24b5a939819d9dadc84fc7ec891cff643 (patch)
tree077ee4ffbe0c4417f9d91cded1a1d7cc7b74be7a /bin/sh/histedit.c
parent582b546eb7cf75ea34c125f7893cf78079c7a160 (diff)
downloadFreeBSD-src-72606bd24b5a939819d9dadc84fc7ec891cff643.zip
FreeBSD-src-72606bd24b5a939819d9dadc84fc7ec891cff643.tar.gz
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.
Diffstat (limited to 'bin/sh/histedit.c')
-rw-r--r--bin/sh/histedit.c4
1 files changed, 1 insertions, 3 deletions
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;
OpenPOWER on IntegriCloud