From 201e0776e68df3547d24a3790d166bbefd438756 Mon Sep 17 00:00:00 2001 From: millert Date: Wed, 27 Dec 2017 13:02:57 +0000 Subject: 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@ --- bin/ksh/table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/ksh/table.c') diff --git a/bin/ksh/table.c b/bin/ksh/table.c index 074fc13ddea..d93ecddb9f2 100644 --- a/bin/ksh/table.c +++ b/bin/ksh/table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table.c,v 1.23 2015/11/01 15:38:53 mmcc Exp $ */ +/* $OpenBSD: table.c,v 1.24 2017/12/27 13:02:57 millert Exp $ */ /* * dynamic hashed associative table for commands and variables @@ -18,7 +18,7 @@ struct table aliases; /* aliases */ struct table keywords; /* keywords */ struct table homedirs; /* homedir() cache */ -char *path; /* copy of either PATH or def_path */ +char *search_path; /* copy of either PATH or def_path */ const char *def_path; /* path to use if PATH not set */ char *tmpdir; /* TMPDIR value */ const char *prompt; -- cgit v1.2.3-59-g8ed1b