summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2017-03-10 18:44:41 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2017-03-10 18:44:41 +0900
commitc09af3516f9673ae2d1bbca1d2f59433bb6fd342 (patch)
tree59d0632f52772dcd7ef3150178e010d6c4a3693d
parent4d7b34c5f38062313a7a8bba36b1f64c1a18d387 (diff)
downloadzsh-c09af3516f9673ae2d1bbca1d2f59433bb6fd342.tar.gz
zsh-c09af3516f9673ae2d1bbca1d2f59433bb6fd342.zip
unposted: declare file local variables as static
-rw-r--r--ChangeLog2
-rw-r--r--Src/hashtable.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 233b0cca1..da581010a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
* unposted: Src/Modules/tcp.c: silence compiler warnings on Cygwin
+ * unposted: Src/hashtable.c: declare file local variables as static
+
2017-03-09 Barton E. Schaefer <schaefer@zsh.org>
* Fabian Klotzl: 40808: Completion/Linux/Command/_mdadm,
diff --git a/Src/hashtable.c b/Src/hashtable.c
index 8987c8597..ba5faad91 100644
--- a/Src/hashtable.c
+++ b/Src/hashtable.c
@@ -1496,8 +1496,8 @@ struct dircache_entry
* for multiple references to the same directory, e.g
* "autoload /blah/blah/\*".
*/
-struct dircache_entry *dircache, *dircache_lastentry;
-int dircache_size;
+static struct dircache_entry *dircache, *dircache_lastentry;
+static int dircache_size;
/*
* Set *name to point to a cached version of value.