aboutsummaryrefslogtreecommitdiff
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
parent94d5d82bd84ec65d52c3df92276221d48990f306 (diff)
downloadbusybox-w32-c16bd212e341598452b7885d9e4ac2064f417673.tar.gz
busybox-w32-c16bd212e341598452b7885d9e4ac2064f417673.tar.bz2
busybox-w32-c16bd212e341598452b7885d9e4ac2064f417673.zip
silly switch style fix
-rw-r--r--archival/dpkg.c4
-rw-r--r--archival/libunarchive/data_extract_all.c2
-rw-r--r--archival/unzip.c4
-rw-r--r--coreutils/head.c2
-rw-r--r--coreutils/sort.c2
-rw-r--r--miscutils/setsid.c2
-rw-r--r--networking/libiproute/iproute.c2
-rw-r--r--networking/wget.c2
8 files changed, 10 insertions, 10 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)
317static int test_version(const unsigned int version1, const unsigned int version2, const unsigned int operator) 317static int test_version(const unsigned int version1, const unsigned int version2, const unsigned int operator)
318{ 318{
319 const int version_result = version_compare(version1, version2); 319 const int version_result = version_compare(version1, version2);
320 switch(operator) { 320 switch (operator) {
321 case (VER_ANY): 321 case (VER_ANY):
322 return(TRUE); 322 return(TRUE);
323 case (VER_EQUAL): 323 case (VER_EQUAL):
@@ -646,7 +646,7 @@ static unsigned int fill_package_struct(char *control_buffer)
646 } 646 }
647 647
648 field_num = compare_string_array(field_names, field_name); 648 field_num = compare_string_array(field_names, field_name);
649 switch(field_num) { 649 switch (field_num) {
650 case 0: /* Package */ 650 case 0: /* Package */
651 new_node->name = search_name_hashtable(field_value); 651 new_node->name = search_name_hashtable(field_value);
652 break; 652 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)
55 } 55 }
56 } else { 56 } else {
57 /* Create the filesystem entry */ 57 /* Create the filesystem entry */
58 switch(file_header->mode & S_IFMT) { 58 switch (file_header->mode & S_IFMT) {
59 case S_IFREG: { 59 case S_IFREG: {
60 /* Regular file */ 60 /* Regular file */
61 dst_fd = xopen3(file_header->name, O_WRONLY | O_CREAT | O_EXCL, 61 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)
115 struct stat stat_buf; 115 struct stat stat_buf;
116 116
117 while((opt = getopt(argc, argv, "-d:lnopqx")) != -1) { 117 while((opt = getopt(argc, argv, "-d:lnopqx")) != -1) {
118 switch(opt_range) { 118 switch (opt_range) {
119 case 0: /* Options */ 119 case 0: /* Options */
120 switch(opt) { 120 switch (opt) {
121 case 'l': /* List */ 121 case 'l': /* List */
122 verbosity = v_list; 122 verbosity = v_list;
123 break; 123 break;
diff --git a/coreutils/head.c b/coreutils/head.c
index 8dc6ee0b4..50694bfef 100644
--- a/coreutils/head.c
+++ b/coreutils/head.c
@@ -62,7 +62,7 @@ int head_main(int argc, char **argv)
62 62
63 /* No size benefit in converting this to bb_getopt_ulflags */ 63 /* No size benefit in converting this to bb_getopt_ulflags */
64 while ((opt = getopt(argc, argv, head_opts)) > 0) { 64 while ((opt = getopt(argc, argv, head_opts)) > 0) {
65 switch(opt) { 65 switch (opt) {
66#if ENABLE_FEATURE_FANCY_HEAD 66#if ENABLE_FEATURE_FANCY_HEAD
67 case 'q': 67 case 'q':
68 header_threshhold = INT_MAX; 68 header_threshhold = INT_MAX;
diff --git a/coreutils/sort.c b/coreutils/sort.c
index d86f8dcde..7dfe1764c 100644
--- a/coreutils/sort.c
+++ b/coreutils/sort.c
@@ -293,7 +293,7 @@ int sort_main(int argc, char **argv)
293 } 293 }
294#ifdef CONFIG_FEATURE_SORT_BIG 294#ifdef CONFIG_FEATURE_SORT_BIG
295 /* if no key, perform alphabetic sort */ 295 /* if no key, perform alphabetic sort */
296 if(!key_list) add_key()->range[0]=1; 296 if(!key_list) add_key()->range[0]=1;
297 /* handle -c */ 297 /* handle -c */
298 if(global_flags&FLAG_c) { 298 if(global_flags&FLAG_c) {
299 int j=(global_flags&FLAG_u) ? -1 : 0; 299 int j=(global_flags&FLAG_u) ? -1 : 0;
diff --git a/miscutils/setsid.c b/miscutils/setsid.c
index 41d9ef2ce..347b2babd 100644
--- a/miscutils/setsid.c
+++ b/miscutils/setsid.c
@@ -25,7 +25,7 @@ int setsid_main(int argc, char *argv[])
25 bb_show_usage(); 25 bb_show_usage();
26 26
27 if (getpgrp() == getpid()) { 27 if (getpgrp() == getpid()) {
28 switch(fork()){ 28 switch (fork()){
29 case -1: 29 case -1:
30 bb_perror_msg_and_die("fork"); 30 bb_perror_msg_and_die("fork");
31 case 0: 31 case 0:
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index c4bbd98b1..6c902eb0e 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -820,7 +820,7 @@ int do_iproute(int argc, char **argv)
820 if (*argv) { 820 if (*argv) {
821 command_num = compare_string_array(ip_route_commands, *argv); 821 command_num = compare_string_array(ip_route_commands, *argv);
822 } 822 }
823 switch(command_num) { 823 switch (command_num) {
824 case 0: /* add*/ 824 case 0: /* add*/
825 flags = NLM_F_CREATE|NLM_F_EXCL; 825 flags = NLM_F_CREATE|NLM_F_EXCL;
826 break; 826 break;
diff --git a/networking/wget.c b/networking/wget.c
index 0eb8cd610..654973996 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -388,7 +388,7 @@ read_response:
388 s = strchr(target.user, ':'); 388 s = strchr(target.user, ':');
389 if (s) 389 if (s)
390 *(s++) = '\0'; 390 *(s++) = '\0';
391 switch(ftpcmd("USER ", target.user, sfp, buf)) { 391 switch (ftpcmd("USER ", target.user, sfp, buf)) {
392 case 230: 392 case 230:
393 break; 393 break;
394 case 331: 394 case 331: