aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-10-29 11:46:52 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-10-29 11:46:52 +0200
commitfb132e47370378474c68ad22c1c0cb2ccee178de (patch)
tree4f78d0fdd1c2fa2341c7d9bb17f9d98d099a238c /archival
parent66cb7bed33da605674c3d24734466b8e8a60e337 (diff)
downloadbusybox-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')
-rw-r--r--archival/ar.c16
-rw-r--r--archival/bz/bzlib.c2
-rw-r--r--archival/bz/compress.c9
-rw-r--r--archival/dpkg.c11
-rw-r--r--archival/dpkg_deb.c10
-rw-r--r--archival/libunarchive/decompress_bunzip2.c4
6 files changed, 26 insertions, 26 deletions
diff --git a/archival/ar.c b/archival/ar.c
index 05556c6cb..730d7c6c6 100644
--- a/archival/ar.c
+++ b/archival/ar.c
@@ -179,17 +179,17 @@ static void FAST_FUNC header_verbose_list_ar(const file_header_t *file_header)
179 ); 179 );
180} 180}
181 181
182#define AR_OPT_VERBOSE (1 << 0) 182#define AR_OPT_VERBOSE (1 << 0)
183#define AR_OPT_PRESERVE_DATE (1 << 1) 183#define AR_OPT_PRESERVE_DATE (1 << 1)
184/* "ar r" implies create, but warns about it. c suppresses warning. 184/* "ar r" implies create, but warns about it. c suppresses warning.
185 * bbox accepts but ignores it: */ 185 * bbox accepts but ignores it: */
186#define AR_OPT_CREATE (1 << 2) 186#define AR_OPT_CREATE (1 << 2)
187 187
188#define AR_CMD_PRINT (1 << 3) 188#define AR_CMD_PRINT (1 << 3)
189#define FIRST_CMD AR_CMD_PRINT 189#define FIRST_CMD AR_CMD_PRINT
190#define AR_CMD_LIST (1 << 4) 190#define AR_CMD_LIST (1 << 4)
191#define AR_CMD_EXTRACT (1 << 5) 191#define AR_CMD_EXTRACT (1 << 5)
192#define AR_CMD_INSERT (1 << 6) 192#define AR_CMD_INSERT (1 << 6)
193 193
194int ar_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 194int ar_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
195int ar_main(int argc UNUSED_PARAM, char **argv) 195int ar_main(int argc UNUSED_PARAM, char **argv)
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 {
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 508b4297b..53e30d541 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -939,8 +939,8 @@ static int package_satisfies_dependency(int package, int depend_type)
939 return 0; 939 return 0;
940 940
941 switch (depend_type) { 941 switch (depend_type) {
942 case EDGE_PRE_DEPENDS: return get_status(status_num, 3) == search_name_hashtable("installed"); 942 case EDGE_PRE_DEPENDS: return get_status(status_num, 3) == search_name_hashtable("installed");
943 case EDGE_DEPENDS: return get_status(status_num, 1) == search_name_hashtable("install"); 943 case EDGE_DEPENDS: return get_status(status_num, 1) == search_name_hashtable("install");
944 } 944 }
945 return 0; 945 return 0;
946} 946}
@@ -967,7 +967,7 @@ static int check_deps(deb_file_t **deb_file, int deb_start /*, int dep_max_count
967 conflicts[conflicts_num] = package_num; 967 conflicts[conflicts_num] = package_num;
968 conflicts_num++; 968 conflicts_num++;
969 /* add provides to conflicts list */ 969 /* add provides to conflicts list */
970 for (j = 0; j < package_hashtable[package_num]->num_of_edges; j++) { 970 for (j = 0; j < package_hashtable[package_num]->num_of_edges; j++) {
971 if (package_hashtable[package_num]->edge[j]->type == EDGE_PROVIDES) { 971 if (package_hashtable[package_num]->edge[j]->type == EDGE_PROVIDES) {
972 const int conflicts_package_num = search_package_hashtable( 972 const int conflicts_package_num = search_package_hashtable(
973 package_hashtable[package_num]->edge[j]->name, 973 package_hashtable[package_num]->edge[j]->name,
@@ -1067,12 +1067,13 @@ static int check_deps(deb_file_t **deb_file, int deb_start /*, int dep_max_count
1067 1067
1068 if (package_edge->type == EDGE_OR_PRE_DEPENDS 1068 if (package_edge->type == EDGE_OR_PRE_DEPENDS
1069 || package_edge->type == EDGE_OR_DEPENDS 1069 || package_edge->type == EDGE_OR_DEPENDS
1070 ) { /* start an EDGE_OR_ list */ 1070 ) {
1071 /* start an EDGE_OR_ list */
1071 number_of_alternatives = package_edge->version; 1072 number_of_alternatives = package_edge->version;
1072 root_of_alternatives = package_edge; 1073 root_of_alternatives = package_edge;
1073 continue; 1074 continue;
1074 } 1075 }
1075 if (number_of_alternatives == 0) { /* not in the middle of an EDGE_OR_ list */ 1076 if (number_of_alternatives == 0) { /* not in the middle of an EDGE_OR_ list */
1076 number_of_alternatives = 1; 1077 number_of_alternatives = 1;
1077 root_of_alternatives = NULL; 1078 root_of_alternatives = NULL;
1078 } 1079 }
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c
index 4c627e890..0ce7c02d8 100644
--- a/archival/dpkg_deb.c
+++ b/archival/dpkg_deb.c
@@ -7,11 +7,11 @@
7#include "libbb.h" 7#include "libbb.h"
8#include "unarchive.h" 8#include "unarchive.h"
9 9
10#define DPKG_DEB_OPT_CONTENTS 1 10#define DPKG_DEB_OPT_CONTENTS 1
11#define DPKG_DEB_OPT_CONTROL 2 11#define DPKG_DEB_OPT_CONTROL 2
12#define DPKG_DEB_OPT_FIELD 4 12#define DPKG_DEB_OPT_FIELD 4
13#define DPKG_DEB_OPT_EXTRACT 8 13#define DPKG_DEB_OPT_EXTRACT 8
14#define DPKG_DEB_OPT_EXTRACT_VERBOSE 16 14#define DPKG_DEB_OPT_EXTRACT_VERBOSE 16
15 15
16int dpkg_deb_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 16int dpkg_deb_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
17int dpkg_deb_main(int argc, char **argv) 17int dpkg_deb_main(int argc, char **argv)
diff --git a/archival/libunarchive/decompress_bunzip2.c b/archival/libunarchive/decompress_bunzip2.c
index 549c8b19f..cf6e1988f 100644
--- a/archival/libunarchive/decompress_bunzip2.c
+++ b/archival/libunarchive/decompress_bunzip2.c
@@ -86,8 +86,8 @@ struct bunzip_data {
86 86
87 /* Big things go last (register-relative addressing can be larger for big offsets) */ 87 /* Big things go last (register-relative addressing can be larger for big offsets) */
88 uint32_t crc32Table[256]; 88 uint32_t crc32Table[256];
89 unsigned char selectors[32768]; /* nSelectors=15 bits */ 89 unsigned char selectors[32768]; /* nSelectors=15 bits */
90 struct group_data groups[MAX_GROUPS]; /* Huffman coding tables */ 90 struct group_data groups[MAX_GROUPS]; /* Huffman coding tables */
91}; 91};
92/* typedef struct bunzip_data bunzip_data; -- done in .h file */ 92/* typedef struct bunzip_data bunzip_data; -- done in .h file */
93 93