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/example.c | |
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 '')
-rw-r--r-- | test/example.c | 6 |
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 @@ | |||
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, |