summaryrefslogtreecommitdiffstats
path: root/bin/ksh/emacs.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2017-12-27 13:02:57 +0000
committermillert <millert@openbsd.org>2017-12-27 13:02:57 +0000
commit201e0776e68df3547d24a3790d166bbefd438756 (patch)
tree6641963dd6823f21f53451d5686cd4996555f12a /bin/ksh/emacs.c
parentImplement OF_getpropint64(). (diff)
downloadwireguard-openbsd-201e0776e68df3547d24a3790d166bbefd438756.tar.xz
wireguard-openbsd-201e0776e68df3547d24a3790d166bbefd438756.zip
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