From 7d6956b6a148465947dbeacef654fecab9b31f55 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 +++--- test/minigzip.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test') 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, diff --git a/test/minigzip.c b/test/minigzip.c index b3025a4..f4ffbe2 100644 --- a/test/minigzip.c +++ b/test/minigzip.c @@ -333,7 +333,7 @@ const char *gzerror(gz, err) #endif -char *prog; +static char *prog; void error OF((const char *msg)); void gz_compress OF((FILE *in, gzFile out)); -- cgit v1.2.3-55-g6feb