aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
Diffstat (limited to 'archival')
-rw-r--r--archival/gzip.c20
-rw-r--r--archival/libunarchive/decompress_unzip.c2
2 files changed, 11 insertions, 11 deletions
diff --git a/archival/gzip.c b/archival/gzip.c
index 91b294891..aebe90ea6 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -484,7 +484,7 @@ static void send_bits(int value, int length)
484 */ 484 */
485static unsigned bi_reverse(unsigned code, int len) 485static unsigned bi_reverse(unsigned code, int len)
486{ 486{
487 register unsigned res = 0; 487 unsigned res = 0;
488 488
489 do { 489 do {
490 res |= code & 1; 490 res |= code & 1;
@@ -782,7 +782,7 @@ static void check_match(IPos start, IPos match, int length);
782 */ 782 */
783static void lm_init(ush * flags) 783static void lm_init(ush * flags)
784{ 784{
785 register unsigned j; 785 unsigned j;
786 786
787 /* Initialize the hash table. */ 787 /* Initialize the hash table. */
788 memset(head, 0, HASH_SIZE * sizeof(*head)); 788 memset(head, 0, HASH_SIZE * sizeof(*head));
@@ -832,9 +832,9 @@ static void lm_init(ush * flags)
832static int longest_match(IPos cur_match) 832static int longest_match(IPos cur_match)
833{ 833{
834 unsigned chain_length = max_chain_length; /* max hash chain length */ 834 unsigned chain_length = max_chain_length; /* max hash chain length */
835 register uch *scan = window + strstart; /* current string */ 835 uch *scan = window + strstart; /* current string */
836 register uch *match; /* matched string */ 836 uch *match; /* matched string */
837 register int len; /* length of current match */ 837 int len; /* length of current match */
838 int best_len = prev_length; /* best match length so far */ 838 int best_len = prev_length; /* best match length so far */
839 IPos limit = 839 IPos limit =
840 strstart > (IPos) MAX_DIST ? strstart - (IPos) MAX_DIST : NIL; 840 strstart > (IPos) MAX_DIST ? strstart - (IPos) MAX_DIST : NIL;
@@ -848,9 +848,9 @@ static int longest_match(IPos cur_match)
848#if HASH_BITS < 8 || MAX_MATCH != 258 848#if HASH_BITS < 8 || MAX_MATCH != 258
849# error Code too clever 849# error Code too clever
850#endif 850#endif
851 register uch *strend = window + strstart + MAX_MATCH; 851 uch *strend = window + strstart + MAX_MATCH;
852 register uch scan_end1 = scan[best_len - 1]; 852 uch scan_end1 = scan[best_len - 1];
853 register uch scan_end = scan[best_len]; 853 uch scan_end = scan[best_len];
854 854
855 /* Do not waste too much time if we already have a good match: */ 855 /* Do not waste too much time if we already have a good match: */
856 if (prev_length >= good_match) { 856 if (prev_length >= good_match) {
@@ -937,7 +937,7 @@ static void check_match(IPos start, IPos match, int length)
937 */ 937 */
938static void fill_window(void) 938static void fill_window(void)
939{ 939{
940 register unsigned n, m; 940 unsigned n, m;
941 unsigned more = 941 unsigned more =
942 (unsigned) (window_size - (ulg) lookahead - (ulg) strstart); 942 (unsigned) (window_size - (ulg) lookahead - (ulg) strstart);
943 /* Amount of free space at the end of the window. */ 943 /* Amount of free space at the end of the window. */
@@ -1005,7 +1005,7 @@ static ulg deflate(void)
1005 IPos prev_match; /* previous match */ 1005 IPos prev_match; /* previous match */
1006 int flush; /* set if current block must be flushed */ 1006 int flush; /* set if current block must be flushed */
1007 int match_available = 0; /* set if previous match exists */ 1007 int match_available = 0; /* set if previous match exists */
1008 register unsigned match_length = MIN_MATCH - 1; /* length of best match */ 1008 unsigned match_length = MIN_MATCH - 1; /* length of best match */
1009 1009
1010 /* Process the input block. */ 1010 /* Process the input block. */
1011 while (lookahead != 0) { 1011 while (lookahead != 0) {
diff --git a/archival/libunarchive/decompress_unzip.c b/archival/libunarchive/decompress_unzip.c
index e39901c1b..46a26933b 100644
--- a/archival/libunarchive/decompress_unzip.c
+++ b/archival/libunarchive/decompress_unzip.c
@@ -514,7 +514,7 @@ static int inflate_stored(int my_n, int my_b_stored, int my_k_stored, int setup)
514static int inflate_block(int *e) 514static int inflate_block(int *e)
515{ 515{
516 unsigned t; /* block type */ 516 unsigned t; /* block type */
517 register unsigned int b; /* bit buffer */ 517 unsigned int b; /* bit buffer */
518 unsigned int k; /* number of bits in bit buffer */ 518 unsigned int k; /* number of bits in bit buffer */
519 519
520 /* make local bit buffer */ 520 /* make local bit buffer */