summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-05-09 10:00:25 +0200
committerJim Meyering <meyering@redhat.com>2011-05-09 10:11:26 +0200
commit7e7015ea853812052824eb5a62adec3e91a88a5c (patch)
tree6c85b0bc76c873fdbdbbb3b47b61bdd1d8ec0267 /util.c
parent9d1b94368968e29154dab51806f232cddc177b4a (diff)
downloadgzip-7e7015ea853812052824eb5a62adec3e91a88a5c.tar.gz
maint: declare many variables to be static
* deflate.c: Likewise. * gzip.c: Likewise. * gzip.h: Likewise. * inflate.c: Likewise. * trees.c: Likewise. * unzip.c: Likewise. * util.c: Likewise.
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index 58e0092..723b448 100644
--- a/util.c
+++ b/util.c
@@ -39,7 +39,7 @@
static int write_buffer (int, voidp, unsigned int);
-extern ulg crc_32_tab[]; /* crc table, defined below */
+static const ulg crc_32_tab[]; /* crc table, defined below */
/* ===========================================================================
* Copy input to output unchanged: zcat == cat with --force.
@@ -438,7 +438,7 @@ void fprint_off(file, offset, width)
/* ========================================================================
* Table of CRC-32's of all single-byte values (made by makecrc.c)
*/
-ulg crc_32_tab[] = {
+static const ulg crc_32_tab[] = {
0x00000000L, 0x77073096L, 0xee0e612cL, 0x990951baL, 0x076dc419L,
0x706af48fL, 0xe963a535L, 0x9e6495a3L, 0x0edb8832L, 0x79dcb8a4L,
0xe0d5e91eL, 0x97d2d988L, 0x09b64c2bL, 0x7eb17cbdL, 0xe7b82d07L,