diff options
author | 2017-12-27 13:02:57 +0000 | |
---|---|---|
committer | 2017-12-27 13:02:57 +0000 | |
commit | 201e0776e68df3547d24a3790d166bbefd438756 (patch) | |
tree | 6641963dd6823f21f53451d5686cd4996555f12a /bin/ksh/table.c | |
parent | Implement OF_getpropint64(). (diff) | |
download | wireguard-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/table.c')
-rw-r--r-- | bin/ksh/table.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |