aboutsummaryrefslogtreecommitdiff
path: root/test
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
parent8b95fa19cd7bb62af05ccec1e408a33ec30d54fc (diff)
downloadzlib-7d6956b6a148465947dbeacef654fecab9b31f55.tar.gz
zlib-7d6956b6a148465947dbeacef654fecab9b31f55.tar.bz2
zlib-7d6956b6a148465947dbeacef654fecab9b31f55.zip
Make globals in examples local to compilation unit.
Diffstat (limited to 'test')
-rw-r--r--test/example.c6
-rw-r--r--test/minigzip.c2
2 files changed, 4 insertions, 4 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 @@
26 } \ 26 } \
27} 27}
28 28
29z_const char hello[] = "hello, hello!"; 29static z_const char hello[] = "hello, hello!";
30/* "hello world" would be more standard, but the repeated "hello" 30/* "hello world" would be more standard, but the repeated "hello"
31 * stresses the compression code better, sorry... 31 * stresses the compression code better, sorry...
32 */ 32 */
33 33
34const char dictionary[] = "hello"; 34static const char dictionary[] = "hello";
35uLong dictId; /* Adler32 value of the dictionary */ 35static uLong dictId; /* Adler32 value of the dictionary */
36 36
37void test_deflate OF((Byte *compr, uLong comprLen)); 37void test_deflate OF((Byte *compr, uLong comprLen));
38void test_inflate OF((Byte *compr, uLong comprLen, 38void test_inflate OF((Byte *compr, uLong comprLen,
diff --git a/test/minigzip.c b/test/minigzip.c
index b3025a4..f4ffbe2 100644
--- a/test/minigzip.c
+++ b/test/minigzip.c
@@ -333,7 +333,7 @@ const char *gzerror(gz, err)
333 333
334#endif 334#endif
335 335
336char *prog; 336static char *prog;
337 337
338void error OF((const char *msg)); 338void error OF((const char *msg));
339void gz_compress OF((FILE *in, gzFile out)); 339void gz_compress OF((FILE *in, gzFile out));