diff options
Diffstat (limited to 'gunzip.c')
-rw-r--r-- | gunzip.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -370,7 +370,7 @@ unsigned n; /* number of bytes in s[] */ | |||
370 | register ulg c; /* temporary variable */ | 370 | register ulg c; /* temporary variable */ |
371 | static unsigned long crc_32_tab[256]; | 371 | static unsigned long crc_32_tab[256]; |
372 | if (crc_table_empty) { | 372 | if (crc_table_empty) { |
373 | unsigned long c; /* crc shift register */ | 373 | unsigned long csr; /* crc shift register */ |
374 | unsigned long e; /* polynomial exclusive-or pattern */ | 374 | unsigned long e; /* polynomial exclusive-or pattern */ |
375 | int i; /* counter for all possible eight bit values */ | 375 | int i; /* counter for all possible eight bit values */ |
376 | int k; /* byte being shifted into crc apparatus */ | 376 | int k; /* byte being shifted into crc apparatus */ |
@@ -386,13 +386,13 @@ unsigned n; /* number of bytes in s[] */ | |||
386 | /* Compute and print table of CRC's, five per line */ | 386 | /* Compute and print table of CRC's, five per line */ |
387 | crc_32_tab[0] = 0x00000000L; | 387 | crc_32_tab[0] = 0x00000000L; |
388 | for (i = 1; i < 256; i++) { | 388 | for (i = 1; i < 256; i++) { |
389 | c = i; | 389 | csr = i; |
390 | /* The idea to initialize the register with the byte instead of | 390 | /* The idea to initialize the register with the byte instead of |
391 | * zero was stolen from Haruhiko Okumura's ar002 | 391 | * zero was stolen from Haruhiko Okumura's ar002 |
392 | */ | 392 | */ |
393 | for (k = 8; k; k--) | 393 | for (k = 8; k; k--) |
394 | c = c & 1 ? (c >> 1) ^ e : c >> 1; | 394 | csr = csr & 1 ? (csr >> 1) ^ e : csr >> 1; |
395 | crc_32_tab[i]=c; | 395 | crc_32_tab[i]=csr; |
396 | } | 396 | } |
397 | } | 397 | } |
398 | 398 | ||