diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-29 11:46:52 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2010-10-29 11:46:52 +0200 |
commit | fb132e47370378474c68ad22c1c0cb2ccee178de (patch) | |
tree | 4f78d0fdd1c2fa2341c7d9bb17f9d98d099a238c /archival/bz | |
parent | 66cb7bed33da605674c3d24734466b8e8a60e337 (diff) | |
download | busybox-w32-fb132e47370378474c68ad22c1c0cb2ccee178de.tar.gz busybox-w32-fb132e47370378474c68ad22c1c0cb2ccee178de.tar.bz2 busybox-w32-fb132e47370378474c68ad22c1c0cb2ccee178de.zip |
whitespace cleanup
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'archival/bz')
-rw-r--r-- | archival/bz/bzlib.c | 2 | ||||
-rw-r--r-- | archival/bz/compress.c | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/archival/bz/bzlib.c b/archival/bz/bzlib.c index 834179403..b3beeabed 100644 --- a/archival/bz/bzlib.c +++ b/archival/bz/bzlib.c | |||
@@ -28,7 +28,7 @@ in the file LICENSE. | |||
28 | * 0.9.0a/b -- no changes in this file. | 28 | * 0.9.0a/b -- no changes in this file. |
29 | * 0.9.0c -- made zero-length BZ_FLUSH work correctly in bzCompress(). | 29 | * 0.9.0c -- made zero-length BZ_FLUSH work correctly in bzCompress(). |
30 | * fixed bzWrite/bzRead to ignore zero-length requests. | 30 | * fixed bzWrite/bzRead to ignore zero-length requests. |
31 | * fixed bzread to correctly handle read requests after EOF. | 31 | * fixed bzread to correctly handle read requests after EOF. |
32 | * wrong parameter order in call to bzDecompressInit in | 32 | * wrong parameter order in call to bzDecompressInit in |
33 | * bzBuffToBuffDecompress. Fixed. | 33 | * bzBuffToBuffDecompress. Fixed. |
34 | */ | 34 | */ |
diff --git a/archival/bz/compress.c b/archival/bz/compress.c index b9b0949a9..6f1c70a08 100644 --- a/archival/bz/compress.c +++ b/archival/bz/compress.c | |||
@@ -134,15 +134,14 @@ void generateMTFValues(EState* s) | |||
134 | * holds the original block data. | 134 | * holds the original block data. |
135 | * | 135 | * |
136 | * The first thing to do is generate the MTF values, | 136 | * The first thing to do is generate the MTF values, |
137 | * and put them in | 137 | * and put them in ((uint16_t*)s->arr1)[0 .. s->nblock-1]. |
138 | * ((uint16_t*)s->arr1)[0 .. s->nblock-1]. | 138 | * |
139 | * Because there are strictly fewer or equal MTF values | 139 | * Because there are strictly fewer or equal MTF values |
140 | * than block values, ptr values in this area are overwritten | 140 | * than block values, ptr values in this area are overwritten |
141 | * with MTF values only when they are no longer needed. | 141 | * with MTF values only when they are no longer needed. |
142 | * | 142 | * |
143 | * The final compressed bitstream is generated into the | 143 | * The final compressed bitstream is generated into the |
144 | * area starting at | 144 | * area starting at &((uint8_t*)s->arr2)[s->nblock] |
145 | * &((uint8_t*)s->arr2)[s->nblock] | ||
146 | * | 145 | * |
147 | * These storage aliases are set up in bzCompressInit(), | 146 | * These storage aliases are set up in bzCompressInit(), |
148 | * except for the last one, which is arranged in | 147 | * except for the last one, which is arranged in |
@@ -459,7 +458,7 @@ void sendMTFValues(EState* s) | |||
459 | } | 458 | } |
460 | 459 | ||
461 | AssertH(nGroups < 8, 3002); | 460 | AssertH(nGroups < 8, 3002); |
462 | AssertH(nSelectors < 32768 && nSelectors <= (2 + (900000 / BZ_G_SIZE)), 3003); | 461 | AssertH(nSelectors < 32768 && nSelectors <= (2 + (900000 / BZ_G_SIZE)), 3003); |
463 | 462 | ||
464 | /*--- Compute MTF values for the selectors. ---*/ | 463 | /*--- Compute MTF values for the selectors. ---*/ |
465 | { | 464 | { |