diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-04-16 04:30:38 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-04-16 04:30:38 +0000 |
commit | 4e5936ef9501da7d2f010d8c4f3703505b28b2c5 (patch) | |
tree | 0fb5b9eaab153b533ffe5b228d70f05ebf0b3b16 /archival/gzip.c | |
parent | 5c63a729681991c86fc94fbe6f9f18b8cf876810 (diff) | |
download | busybox-w32-4e5936ef9501da7d2f010d8c4f3703505b28b2c5.tar.gz busybox-w32-4e5936ef9501da7d2f010d8c4f3703505b28b2c5.tar.bz2 busybox-w32-4e5936ef9501da7d2f010d8c4f3703505b28b2c5.zip |
In Bug 208, bernhardf writes:
On machines with only ANSI compliant compilers, not explitily delcaring
an empty parameter list 'void' causes failure.
Diffstat (limited to 'archival/gzip.c')
-rw-r--r-- | archival/gzip.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/archival/gzip.c b/archival/gzip.c index 0c104cfc6..6cf4b395e 100644 --- a/archival/gzip.c +++ b/archival/gzip.c | |||
@@ -541,7 +541,7 @@ static unsigned bi_reverse(unsigned code, int len) | |||
541 | /* =========================================================================== | 541 | /* =========================================================================== |
542 | * Write out any remaining bits in an incomplete byte. | 542 | * Write out any remaining bits in an incomplete byte. |
543 | */ | 543 | */ |
544 | static void bi_windup() | 544 | static void bi_windup(void) |
545 | { | 545 | { |
546 | if (bi_valid > 8) { | 546 | if (bi_valid > 8) { |
547 | put_short(bi_buf); | 547 | put_short(bi_buf); |
@@ -978,7 +978,7 @@ static void check_match(IPos start, IPos match, int length) | |||
978 | * file reads are performed for at least two bytes (required for the | 978 | * file reads are performed for at least two bytes (required for the |
979 | * translate_eol option). | 979 | * translate_eol option). |
980 | */ | 980 | */ |
981 | static void fill_window() | 981 | static void fill_window(void) |
982 | { | 982 | { |
983 | register unsigned n, m; | 983 | register unsigned n, m; |
984 | unsigned more = | 984 | unsigned more = |
@@ -1042,7 +1042,7 @@ static void fill_window() | |||
1042 | * evaluation for matches: a match is finally adopted only if there is | 1042 | * evaluation for matches: a match is finally adopted only if there is |
1043 | * no better match at the next window position. | 1043 | * no better match at the next window position. |
1044 | */ | 1044 | */ |
1045 | static ulg deflate() | 1045 | static ulg deflate(void) |
1046 | { | 1046 | { |
1047 | IPos hash_head; /* head of hash chain */ | 1047 | IPos hash_head; /* head of hash chain */ |
1048 | IPos prev_match; /* previous match */ | 1048 | IPos prev_match; /* previous match */ |
@@ -1730,7 +1730,7 @@ static void ct_init(ush * attr, int *methodp) | |||
1730 | /* =========================================================================== | 1730 | /* =========================================================================== |
1731 | * Initialize a new block. | 1731 | * Initialize a new block. |
1732 | */ | 1732 | */ |
1733 | static void init_block() | 1733 | static void init_block(void) |
1734 | { | 1734 | { |
1735 | int n; /* iterates over tree elements */ | 1735 | int n; /* iterates over tree elements */ |
1736 | 1736 | ||
@@ -2143,7 +2143,7 @@ static void send_tree(ct_data * tree, int max_code) | |||
2143 | * Construct the Huffman tree for the bit lengths and return the index in | 2143 | * Construct the Huffman tree for the bit lengths and return the index in |
2144 | * bl_order of the last bit length code to send. | 2144 | * bl_order of the last bit length code to send. |
2145 | */ | 2145 | */ |
2146 | static int build_bl_tree() | 2146 | static int build_bl_tree(void) |
2147 | { | 2147 | { |
2148 | int max_blindex; /* index of last bit length code of non zero freq */ | 2148 | int max_blindex; /* index of last bit length code of non zero freq */ |
2149 | 2149 | ||
@@ -2406,7 +2406,7 @@ static void compress_block(ct_data * ltree, ct_data * dtree) | |||
2406 | * IN assertion: the fields freq of dyn_ltree are set and the total of all | 2406 | * IN assertion: the fields freq of dyn_ltree are set and the total of all |
2407 | * frequencies does not exceed 64K (to fit in an int on 16 bit machines). | 2407 | * frequencies does not exceed 64K (to fit in an int on 16 bit machines). |
2408 | */ | 2408 | */ |
2409 | static void set_file_type() | 2409 | static void set_file_type(void) |
2410 | { | 2410 | { |
2411 | int n = 0; | 2411 | int n = 0; |
2412 | unsigned ascii_freq = 0; | 2412 | unsigned ascii_freq = 0; |
@@ -2519,7 +2519,7 @@ static int file_read(char *buf, unsigned size) | |||
2519 | * Write the output buffer outbuf[0..outcnt-1] and update bytes_out. | 2519 | * Write the output buffer outbuf[0..outcnt-1] and update bytes_out. |
2520 | * (used for the compressed data only) | 2520 | * (used for the compressed data only) |
2521 | */ | 2521 | */ |
2522 | static void flush_outbuf() | 2522 | static void flush_outbuf(void) |
2523 | { | 2523 | { |
2524 | if (outcnt == 0) | 2524 | if (outcnt == 0) |
2525 | return; | 2525 | return; |