summaryrefslogtreecommitdiff
path: root/test/example.c
diff options
context:
space:
mode:
authorMark Adler <madler@alumni.caltech.edu>2016-10-14 13:10:54 -0700
committerHans Kristian Rosbach <hk-git@circlestorm.org>2017-02-01 12:06:30 +0100
commit51590d4ec78c94c8d5fdcfd22bab9718774b152d (patch)
tree697ac61d828c978ac743abdff9c01f3db9a9c67e /test/example.c
parentb50aa0f21a686e5776e02f003d3c0ad9b256c703 (diff)
Make globals in examples local to compilation unit.
Diffstat (limited to 'test/example.c')
-rw-r--r--test/example.c6
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);