aboutsummaryrefslogtreecommitdiff
path: root/archival
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-09-27 19:51:06 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-09-27 19:51:06 +0000
commitc16bd212e341598452b7885d9e4ac2064f417673 (patch)
tree843350d8cd414849eadca5b65ef8f497834895d2 /archival
parent94d5d82bd84ec65d52c3df92276221d48990f306 (diff)
downloadbusybox-c16bd212e341598452b7885d9e4ac2064f417673.tar.gz
silly switch style fix
Diffstat (limited to 'archival')
-rw-r--r--archival/dpkg.c4
-rw-r--r--archival/libunarchive/data_extract_all.c2
-rw-r--r--archival/unzip.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/archival/dpkg.c b/archival/dpkg.c
index 2180d1868..b7b1ef4a2 100644
--- a/archival/dpkg.c
+++ b/archival/dpkg.c
@@ -317,7 +317,7 @@ static int version_compare(const unsigned int ver1, const unsigned int ver2)
static int test_version(const unsigned int version1, const unsigned int version2, const unsigned int operator)
{
const int version_result = version_compare(version1, version2);
- switch(operator) {
+ switch (operator) {
case (VER_ANY):
return(TRUE);
case (VER_EQUAL):
@@ -646,7 +646,7 @@ static unsigned int fill_package_struct(char *control_buffer)
}
field_num = compare_string_array(field_names, field_name);
- switch(field_num) {
+ switch (field_num) {
case 0: /* Package */
new_node->name = search_name_hashtable(field_value);
break;
diff --git a/archival/libunarchive/data_extract_all.c b/archival/libunarchive/data_extract_all.c
index c8d162bce..b1c66a4a2 100644
--- a/archival/libunarchive/data_extract_all.c
+++ b/archival/libunarchive/data_extract_all.c
@@ -55,7 +55,7 @@ void data_extract_all(archive_handle_t *archive_handle)
}
} else {
/* Create the filesystem entry */
- switch(file_header->mode & S_IFMT) {
+ switch (file_header->mode & S_IFMT) {
case S_IFREG: {
/* Regular file */
dst_fd = xopen3(file_header->name, O_WRONLY | O_CREAT | O_EXCL,
diff --git a/archival/unzip.c b/archival/unzip.c
index 1b80aea9f..f63925739 100644
--- a/archival/unzip.c
+++ b/archival/unzip.c
@@ -115,9 +115,9 @@ int unzip_main(int argc, char **argv)
struct stat stat_buf;
while((opt = getopt(argc, argv, "-d:lnopqx")) != -1) {
- switch(opt_range) {
+ switch (opt_range) {
case 0: /* Options */
- switch(opt) {
+ switch (opt) {
case 'l': /* List */
verbosity = v_list;
break;