diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2016-10-14 13:10:54 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2016-10-14 13:10:54 -0700 |
commit | 7d6956b6a148465947dbeacef654fecab9b31f55 (patch) | |
tree | a7ccaa670afc7efa8d8ddbb9b80891a350cc563b /test | |
parent | 8b95fa19cd7bb62af05ccec1e408a33ec30d54fc (diff) | |
download | zlib-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.c | 6 | ||||
-rw-r--r-- | test/minigzip.c | 2 |
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 | ||
29 | z_const char hello[] = "hello, hello!"; | 29 | static 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 | ||
34 | const char dictionary[] = "hello"; | 34 | static const char dictionary[] = "hello"; |
35 | uLong dictId; /* Adler32 value of the dictionary */ | 35 | static uLong dictId; /* Adler32 value of the dictionary */ |
36 | 36 | ||
37 | void test_deflate OF((Byte *compr, uLong comprLen)); | 37 | void test_deflate OF((Byte *compr, uLong comprLen)); |
38 | void test_inflate OF((Byte *compr, uLong comprLen, | 38 | void 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 | ||
336 | char *prog; | 336 | static char *prog; |
337 | 337 | ||
338 | void error OF((const char *msg)); | 338 | void error OF((const char *msg)); |
339 | void gz_compress OF((FILE *in, gzFile out)); | 339 | void gz_compress OF((FILE *in, gzFile out)); |