summaryrefslogtreecommitdiff
path: root/bin/ksh/emacs.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2017-12-27 13:02:58 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2017-12-27 13:02:58 +0000
commit45121236b15fd3f56a13727caccc765b6307784d (patch)
treee3e8653f3909860c2d77cbc4900d8874ccfd99a9 /bin/ksh/emacs.c
parentef047cc13eab1c124739d9b544adc2779271b7e7 (diff)
Add -Wshadow to Makefile and fix the resulting warnings. Many of
the warnings are due to the use of globals with generic names, specifically "options" and "path". I've renamed "options" to "sh_options" since it holds the shell options and "path" to "search_path". OK jca@ tb@
Diffstat (limited to 'bin/ksh/emacs.c')
-rw-r--r--bin/ksh/emacs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/ksh/emacs.c b/bin/ksh/emacs.c
index a990e12ddf9..a3afaa7c09a 100644
--- a/bin/ksh/emacs.c
+++ b/bin/ksh/emacs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: emacs.c,v 1.76 2017/12/18 19:04:53 anton Exp $ */
+/* $OpenBSD: emacs.c,v 1.77 2017/12/27 13:02:57 millert Exp $ */
/*
* Emacs-like command line editing and history
@@ -1995,8 +1995,6 @@ x_prev_histword(int c)
rcp++;
x_ins(rcp);
} else {
- int c;
-
rcp = cp;
/*
* ignore white-space at start of line