svn commit: trunk/busybox: archival archival/libunarchive coreutils etc...

vda at busybox.net vda at busybox.net
Wed Sep 27 19:51:06 UTC 2006


Author: vda
Date: 2006-09-27 12:51:06 -0700 (Wed, 27 Sep 2006)
New Revision: 16239

Log:
silly switch style fix


Modified:
   trunk/busybox/archival/dpkg.c
   trunk/busybox/archival/libunarchive/data_extract_all.c
   trunk/busybox/archival/unzip.c
   trunk/busybox/coreutils/head.c
   trunk/busybox/coreutils/sort.c
   trunk/busybox/miscutils/setsid.c
   trunk/busybox/networking/libiproute/iproute.c
   trunk/busybox/networking/wget.c


Changeset:
Modified: trunk/busybox/archival/dpkg.c
===================================================================
--- trunk/busybox/archival/dpkg.c	2006-09-27 19:48:56 UTC (rev 16238)
+++ trunk/busybox/archival/dpkg.c	2006-09-27 19:51:06 UTC (rev 16239)
@@ -317,7 +317,7 @@
 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 @@
 		}
 
 		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;

Modified: trunk/busybox/archival/libunarchive/data_extract_all.c
===================================================================
--- trunk/busybox/archival/libunarchive/data_extract_all.c	2006-09-27 19:48:56 UTC (rev 16238)
+++ trunk/busybox/archival/libunarchive/data_extract_all.c	2006-09-27 19:51:06 UTC (rev 16239)
@@ -55,7 +55,7 @@
 		}
 	} 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,

Modified: trunk/busybox/archival/unzip.c
===================================================================
--- trunk/busybox/archival/unzip.c	2006-09-27 19:48:56 UTC (rev 16238)
+++ trunk/busybox/archival/unzip.c	2006-09-27 19:51:06 UTC (rev 16239)
@@ -115,9 +115,9 @@
 	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;

Modified: trunk/busybox/coreutils/head.c
===================================================================
--- trunk/busybox/coreutils/head.c	2006-09-27 19:48:56 UTC (rev 16238)
+++ trunk/busybox/coreutils/head.c	2006-09-27 19:51:06 UTC (rev 16239)
@@ -62,7 +62,7 @@
 
 	/* No size benefit in converting this to bb_getopt_ulflags */
 	while ((opt = getopt(argc, argv, head_opts)) > 0) {
-		switch(opt) {
+		switch (opt) {
 #if ENABLE_FEATURE_FANCY_HEAD
 			case 'q':
 				header_threshhold = INT_MAX;

Modified: trunk/busybox/coreutils/sort.c
===================================================================
--- trunk/busybox/coreutils/sort.c	2006-09-27 19:48:56 UTC (rev 16238)
+++ trunk/busybox/coreutils/sort.c	2006-09-27 19:51:06 UTC (rev 16239)
@@ -293,7 +293,7 @@
 	}
 #ifdef CONFIG_FEATURE_SORT_BIG
 	/* if no key, perform alphabetic sort */
-    if(!key_list) add_key()->range[0]=1;
+	if(!key_list) add_key()->range[0]=1;
 	/* handle -c */
 	if(global_flags&FLAG_c) {
 		int j=(global_flags&FLAG_u) ? -1 : 0;

Modified: trunk/busybox/miscutils/setsid.c
===================================================================
--- trunk/busybox/miscutils/setsid.c	2006-09-27 19:48:56 UTC (rev 16238)
+++ trunk/busybox/miscutils/setsid.c	2006-09-27 19:51:06 UTC (rev 16239)
@@ -25,7 +25,7 @@
 		bb_show_usage();
 
 	if (getpgrp() == getpid()) {
-		switch(fork()){
+		switch (fork()){
 		case -1:
 			bb_perror_msg_and_die("fork");
 		case 0:

Modified: trunk/busybox/networking/libiproute/iproute.c
===================================================================
--- trunk/busybox/networking/libiproute/iproute.c	2006-09-27 19:48:56 UTC (rev 16238)
+++ trunk/busybox/networking/libiproute/iproute.c	2006-09-27 19:51:06 UTC (rev 16239)
@@ -820,7 +820,7 @@
 	if (*argv) {
 		command_num = compare_string_array(ip_route_commands, *argv);
 	}
-	switch(command_num) {
+	switch (command_num) {
 		case 0: /* add*/
 			flags = NLM_F_CREATE|NLM_F_EXCL;
 			break;

Modified: trunk/busybox/networking/wget.c
===================================================================
--- trunk/busybox/networking/wget.c	2006-09-27 19:48:56 UTC (rev 16238)
+++ trunk/busybox/networking/wget.c	2006-09-27 19:51:06 UTC (rev 16239)
@@ -388,7 +388,7 @@
 		s = strchr(target.user, ':');
 		if (s)
 			*(s++) = '\0';
-		switch(ftpcmd("USER ", target.user, sfp, buf)) {
+		switch (ftpcmd("USER ", target.user, sfp, buf)) {
 			case 230:
 				break;
 			case 331:




More information about the busybox-cvs mailing list