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 |
Make globals in examples local to compilation unit.
Diffstat (limited to 'test/example.c')
-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 @@ } \ } -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, |