diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2016-10-14 13:10:54 -0700 |
---|---|---|
committer | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2017-02-01 12:06:30 +0100 |
commit | 51590d4ec78c94c8d5fdcfd22bab9718774b152d (patch) | |
tree | 697ac61d828c978ac743abdff9c01f3db9a9c67e /test/example.c | |
parent | b50aa0f21a686e5776e02f003d3c0ad9b256c703 (diff) |
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 6d9bad3..bd50d9c 100644 --- a/test/example.c +++ b/test/example.c @@ -21,13 +21,13 @@ } \ } -const char hello[] = "hello, hello!"; +static 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"; -unsigned long dictId; /* Adler32 value of the dictionary */ +static const char dictionary[] = "hello"; +static unsigned long dictId; /* Adler32 value of the dictionary */ void test_deflate (unsigned char *compr, size_t comprLen); void test_inflate (unsigned char *compr, size_t comprLen, unsigned char *uncompr, size_t uncomprLen); |