summaryrefslogtreecommitdiff
path: root/test/example.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2016-10-14 13:10:54 -0700
committerMark Adler <madler@alumni.caltech.edu>2016-10-14 13:10:54 -0700
commit7d6956b6a148465947dbeacef654fecab9b31f55 (patch)
treea7ccaa670afc7efa8d8ddbb9b80891a350cc563b /test/example.c
parent8b95fa19cd7bb62af05ccec1e408a33ec30d54fc (diff)
downloadzlib-7d6956b6a148465947dbeacef654fecab9b31f55.tar.gz
Make globals in examples local to compilation unit.
Diffstat (limited to 'test/example.c')
-rw-r--r--test/example.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/example.c b/test/example.c
index e05bc2e..104b2b7 100644
--- a/test/example.c
+++ b/test/example.c
@@ -26,13 +26,13 @@
} \
}
-z_const char hello[] = "hello, hello!";
+static z_const char hello[] = "hello, hello!";
/* "hello world" would be more standard, but the repeated "hello"
* stresses the compression code better, sorry...
*/
-const char dictionary[] = "hello";
-uLong dictId; /* Adler32 value of the dictionary */
+static const char dictionary[] = "hello";
+static uLong dictId; /* Adler32 value of the dictionary */
void test_deflate OF((Byte *compr, uLong comprLen));
void test_inflate OF((Byte *compr, uLong comprLen,