about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2016-08-23 18:14:18 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2016-08-23 18:14:18 +0900
commitd1d79796fbd2261798011ce810b544b62b0668a1 (patch)
tree82c70f307c13216db11478b5a9383c736ba49433
parent18aa25c75d84b86be15a934554d3c829926a4066 (diff)
downloadzsh-d1d79796fbd2261798011ce810b544b62b0668a1.tar.gz
zsh-d1d79796fbd2261798011ce810b544b62b0668a1.tar.xz
zsh-d1d79796fbd2261798011ce810b544b62b0668a1.zip
39086: declare file local variables as 'static'
-rw-r--r--ChangeLog4
-rw-r--r--Src/mem.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3c54cb9ca..38b790e59 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2016-08-23  Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
+
+	* 39086: Src/mem.c: declare file local variables as 'static'
+
 2016-08-22  Oliver Kiddle  <opk@zsh.org>
 
 	* unposted (c.f. Mikael: 39078): Completion/Unix/Command/_git:
diff --git a/Src/mem.c b/Src/mem.c
index e31145e1e..021dad573 100644
--- a/Src/mem.c
+++ b/Src/mem.c
@@ -157,13 +157,13 @@ mod_export Heapid last_heap_id;
  * Assumes old_heaps() will come along and restore it later
  * (outputs an error if old_heaps() is called out of sequence).
  */
-LinkList heaps_saved;
+static LinkList heaps_saved;
 
 /*
  * Debugging verbosity.  This must be set from a debugger.
  * An 'or' of bits from the enum heap_debug_verbosity.
  */
-volatile int heap_debug_verbosity;
+static volatile int heap_debug_verbosity;
 
 /*
  * Generate a heap identifier that's unique up to unsigned integer wrap.