From 51590d4ec78c94c8d5fdcfd22bab9718774b152d Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 14 Oct 2016 13:10:54 -0700 Subject: Make globals in examples local to compilation unit. --- test/example.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/example.c') diff --git a/test/example.c b/test/example.c index 6d9bad35d1..bd50d9cb22 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); -- cgit 0.0.5-2-1-g0f52