svn commit: trunk/busybox: coreutils debianutils findutils miscutil etc...

vda at busybox.net vda at busybox.net
Wed Jun 25 09:53:18 UTC 2008


Author: vda
Date: 2008-06-25 02:53:17 -0700 (Wed, 25 Jun 2008)
New Revision: 22497

Log:
whitespace fixes. no code changes



Modified:
   trunk/busybox/coreutils/ls.c
   trunk/busybox/coreutils/stty.c
   trunk/busybox/debianutils/start_stop_daemon.c
   trunk/busybox/findutils/grep.c
   trunk/busybox/miscutils/dc.c
   trunk/busybox/miscutils/fbsplash.c
   trunk/busybox/miscutils/hdparm.c
   trunk/busybox/modutils/depmod.c
   trunk/busybox/networking/arping.c
   trunk/busybox/networking/ftpgetput.c
   trunk/busybox/networking/ifenslave.c
   trunk/busybox/networking/libiproute/iproute.c
   trunk/busybox/networking/slattach.c
   trunk/busybox/networking/tcpudp.c
   trunk/busybox/networking/tftp.c
   trunk/busybox/networking/udhcp/clientpacket.c
   trunk/busybox/procps/top.c
   trunk/busybox/runit/runsv.c
   trunk/busybox/shell/hush.c
   trunk/busybox/sysklogd/logread.c
   trunk/busybox/util-linux/fsck_minix.c
   trunk/busybox/util-linux/mdev.c
   trunk/busybox/util-linux/mkfs_minix.c


Changeset:
Modified: trunk/busybox/coreutils/ls.c
===================================================================
--- trunk/busybox/coreutils/ls.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/coreutils/ls.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -169,12 +169,12 @@
 #endif
 #define current_time_t (G.current_time_t)
 /* memset: we have to zero it out because of NOEXEC */
-#define INIT_G() { \
+#define INIT_G() do { \
 	memset(&G, 0, sizeof(G)); \
 	USE_FEATURE_AUTOWIDTH(tabstops = COLUMN_GAP;) \
 	USE_FEATURE_AUTOWIDTH(terminal_width = TERMINAL_WIDTH;) \
 	USE_FEATURE_LS_TIMESTAMPS(time(&current_time_t);) \
-}
+} while (0)
 
 
 #if ENABLE_FEATURE_ASSUME_UNICODE

Modified: trunk/busybox/coreutils/stty.c
===================================================================
--- trunk/busybox/coreutils/stty.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/coreutils/stty.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -627,11 +627,10 @@
 	char buf[10];
 };
 #define G (*(struct globals*)&bb_common_bufsiz1)
-#define INIT_G() \
-	do { \
-		G.device_name = bb_msg_standard_input; \
-		G.max_col = 80; \
-	} while (0)
+#define INIT_G() do { \
+	G.device_name = bb_msg_standard_input; \
+	G.max_col = 80; \
+} while (0)
 
 
 /* Return a string that is the printable representation of character CH */

Modified: trunk/busybox/debianutils/start_stop_daemon.c
===================================================================
--- trunk/busybox/debianutils/start_stop_daemon.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/debianutils/start_stop_daemon.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -105,11 +105,10 @@
 #define pidfile           (G.pidfile             )
 #define user_id           (G.user_id             )
 #define signal_nr         (G.signal_nr           )
-#define INIT_G() \
-        do { \
-		user_id = -1; \
-		signal_nr = 15; \
-        } while (0)
+#define INIT_G() do { \
+	user_id = -1; \
+	signal_nr = 15; \
+} while (0)
 
 #ifdef OLDER_VERSION_OF_X
 /* -x,--exec EXECUTABLE

Modified: trunk/busybox/findutils/grep.c
===================================================================
--- trunk/busybox/findutils/grep.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/findutils/grep.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -103,12 +103,11 @@
 	const char *cur_file;    /* the current file we are reading */
 };
 #define G (*(struct globals*)&bb_common_bufsiz1)
-#define INIT_G() \
-	do { \
-		struct G_sizecheck { \
-			char G_sizecheck[sizeof(G) > COMMON_BUFSIZE ? -1 : 1]; \
-		}; \
-	} while (0)
+#define INIT_G() do { \
+	struct G_sizecheck { \
+		char G_sizecheck[sizeof(G) > COMMON_BUFSIZE ? -1 : 1]; \
+	}; \
+} while (0)
 #define max_matches       (G.max_matches         )
 #define reflags           (G.reflags             )
 #define invert_search     (G.invert_search       )

Modified: trunk/busybox/miscutils/dc.c
===================================================================
--- trunk/busybox/miscutils/dc.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/miscutils/dc.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -19,8 +19,7 @@
 #define pointer   (G.pointer   )
 #define base      (G.base      )
 #define stack     (G.stack     )
-#define INIT_G() do { \
-} while (0)
+#define INIT_G() do { } while (0)
 
 
 static void push(double a)

Modified: trunk/busybox/miscutils/fbsplash.c
===================================================================
--- trunk/busybox/miscutils/fbsplash.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/miscutils/fbsplash.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -50,10 +50,9 @@
 	struct fb_fix_screeninfo scr_fix;
 };
 #define G (*ptr_to_globals)
-#define INIT_G() \
-	do { \
-		SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
-	} while (0)
+#define INIT_G() do { \
+	SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
+} while (0)
 
 
 #if DEBUG

Modified: trunk/busybox/miscutils/hdparm.c
===================================================================
--- trunk/busybox/miscutils/hdparm.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/miscutils/hdparm.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -1251,7 +1251,7 @@
 			.masks = { 0x100, 0x001, 0x200, 0x002, 0x400, 0x004 },
 			.labels = "*\0""udma0 \0""*\0""udma1 \0""*\0""udma2 \0",
 		};
-			
+
 		printf("\n UDMA modes: ");
 		print_flags(&ultra_modes1, id->dma_ultra);
 #ifdef __NEW_HD_DRIVE_ID

Modified: trunk/busybox/modutils/depmod.c
===================================================================
--- trunk/busybox/modutils/depmod.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/modutils/depmod.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -174,7 +174,7 @@
 	/* Fixup the module names in the depends list */
 	while (mods) {
 		llist_t *deps = NULL, *old_deps = mods->dependencies;
-		
+
 		while (old_deps) {
 			dep_lst_t *all = G.lst;
 			char *longname = NULL;
@@ -262,7 +262,7 @@
 			char *tmp = strrstr(shortname, ".ko");
 
 			*tmp = '\0';
-		
+
 			while (mods->aliases) {
 				fprintf(filedes, "alias %s %s\n",
 					(char*)llist_pop(&mods->aliases),

Modified: trunk/busybox/networking/arping.c
===================================================================
--- trunk/busybox/networking/arping.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/networking/arping.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -61,10 +61,9 @@
 #define received   (G.received  )
 #define brd_recv   (G.brd_recv  )
 #define req_recv   (G.req_recv  )
-#define INIT_G() \
-	do { \
-		count = -1; \
-	} while (0)
+#define INIT_G() do { \
+	count = -1; \
+} while (0)
 
 // If GNUisms are not available...
 //static void *mempcpy(void *_dst, const void *_src, int n)

Modified: trunk/busybox/networking/ftpgetput.c
===================================================================
--- trunk/busybox/networking/ftpgetput.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/networking/ftpgetput.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -27,7 +27,7 @@
 #define G (*(struct globals*)&bb_common_bufsiz1)
 enum { BUFSZ = COMMON_BUFSIZE - offsetof(struct globals, buf) };
 struct BUG_G_too_big {
-        char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1];
+	char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1];
 };
 #define user           (G.user          )
 #define password       (G.password      )
@@ -36,8 +36,7 @@
 #define verbose_flag   (G.verbose_flag  )
 #define do_continue    (G.do_continue   )
 #define buf            (G.buf           )
-#define INIT_G() do { \
-} while (0)
+#define INIT_G() do { } while (0)
 
 
 static void ftp_die(const char *msg) ATTRIBUTE_NORETURN;

Modified: trunk/busybox/networking/ifenslave.c
===================================================================
--- trunk/busybox/networking/ifenslave.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/networking/ifenslave.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -147,7 +147,7 @@
 
 static int set_ifrname_and_do_ioctl(unsigned request, struct ifreq *ifr, const char *ifname)
 {
-        strncpy_IFNAMSIZ(ifr->ifr_name, ifname);
+	strncpy_IFNAMSIZ(ifr->ifr_name, ifname);
 	return ioctl_on_skfd(request, ifr);
 }
 

Modified: trunk/busybox/networking/libiproute/iproute.c
===================================================================
--- trunk/busybox/networking/libiproute/iproute.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/networking/libiproute/iproute.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -582,7 +582,7 @@
 				if (rtnl_rttable_a2n(&tid, *argv))
 					invarg(*argv, "table");
 				filter.tb = tid;
-#else				
+#else
 				invarg(*argv, "table");
 #endif
 			}

Modified: trunk/busybox/networking/slattach.c
===================================================================
--- trunk/busybox/networking/slattach.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/networking/slattach.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -25,7 +25,7 @@
 #define handle       (G.handle      )
 #define saved_disc   (G.saved_disc  )
 #define saved_state  (G.saved_state )
-#define INIT_G() do {} while (0)
+#define INIT_G() do { } while (0)
 
 
 /*

Modified: trunk/busybox/networking/tcpudp.c
===================================================================
--- trunk/busybox/networking/tcpudp.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/networking/tcpudp.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -59,11 +59,10 @@
 #define cmax         (G.cmax        )
 #define env_cur      (G.env_cur     )
 #define env_var      (G.env_var     )
-#define INIT_G() \
-	do { \
-		cmax = 30; \
-		env_cur = &env_var[0]; \
-	} while (0)
+#define INIT_G() do { \
+	cmax = 30; \
+	env_cur = &env_var[0]; \
+} while (0)
 
 
 /* We have to be careful about leaking memory in repeated setenv's */

Modified: trunk/busybox/networking/tftp.c
===================================================================
--- trunk/busybox/networking/tftp.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/networking/tftp.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -92,9 +92,7 @@
 #define block_buf        (G.block_buf   )
 #define user_opt         (G.user_opt    )
 #define error_pkt        (G.error_pkt   )
-#define INIT_G() \
-	do { \
-	} while (0)
+#define INIT_G() do { } while (0)
 
 #define error_pkt_reason (error_pkt[3])
 #define error_pkt_str    (error_pkt + 4)

Modified: trunk/busybox/networking/udhcp/clientpacket.c
===================================================================
--- trunk/busybox/networking/udhcp/clientpacket.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/networking/udhcp/clientpacket.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -64,7 +64,7 @@
 
 	for (i = 0; (c = dhcp_options[i].code) != 0; i++) {
 		if (((dhcp_options[i].flags & OPTION_REQ)
-                     && !client_config.no_default_options)
+		     && !client_config.no_default_options)
 		 || (client_config.opt_mask[c >> 3] & (1 << (c & 7)))
 		) {
 			packet->options[end + OPT_DATA + len] = c;

Modified: trunk/busybox/procps/top.c
===================================================================
--- trunk/busybox/procps/top.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/procps/top.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -89,12 +89,11 @@
 enum { LINE_BUF_SIZE = COMMON_BUFSIZE - offsetof(struct globals, line_buf) };
 
 #define G (*(struct globals*)&bb_common_bufsiz1)
-#define INIT_G() \
-	do { \
-		struct G_sizecheck { \
-			char G_sizecheck[sizeof(G) > COMMON_BUFSIZE ? -1 : 1]; \
-		}; \
-	} while (0)
+#define INIT_G() do { \
+	struct G_sizecheck { \
+		char G_sizecheck[sizeof(G) > COMMON_BUFSIZE ? -1 : 1]; \
+	}; \
+} while (0)
 #define top              (G.top               )
 #define ntop             (G.ntop              )
 #define sort_field       (G.sort_field        )

Modified: trunk/busybox/runit/runsv.c
===================================================================
--- trunk/busybox/runit/runsv.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/runit/runsv.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -103,10 +103,9 @@
 #define logpipe      (G.logpipe     )
 #define dir          (G.dir         )
 #define svd          (G.svd         )
-#define INIT_G() \
-	do { \
-		pidchanged = 1; \
-	} while (0)
+#define INIT_G() do { \
+	pidchanged = 1; \
+} while (0)
 
 static void fatal2_cannot(const char *m1, const char *m2)
 {

Modified: trunk/busybox/shell/hush.c
===================================================================
--- trunk/busybox/shell/hush.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/shell/hush.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -1063,7 +1063,7 @@
 			/* list[n] points to string_start, make space for 16 more pointers */
 			o->maxlen += 0x10 * sizeof(list[0]);
 			o->data = xrealloc(o->data, o->maxlen + 1);
-    			list = (char**)o->data;
+			list = (char**)o->data;
 			memmove(list + n + 0x10, list + n, string_len);
 			o->length += 0x10 * sizeof(list[0]);
 		} else
@@ -3018,7 +3018,7 @@
 		/* Create the memory for child, roughly:
 		 * ctx->pipe->progs = new struct child_prog;
 		 * ctx->pipe->progs[0].family = ctx->pipe;
-    		 * ctx->child = &ctx->pipe->progs[0];
+		 * ctx->child = &ctx->pipe->progs[0];
 		 */
 		done_command(ctx);
 	}

Modified: trunk/busybox/sysklogd/logread.c
===================================================================
--- trunk/busybox/sysklogd/logread.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/sysklogd/logread.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -39,10 +39,9 @@
 #define SMrup (G.SMrup)
 #define SMrdn (G.SMrdn)
 #define shbuf (G.shbuf)
-#define INIT_G() \
-	do { \
-		memcpy(SMrup, init_sem, sizeof(init_sem)); \
-	} while (0)
+#define INIT_G() do { \
+	memcpy(SMrup, init_sem, sizeof(init_sem)); \
+} while (0)
 
 static void error_exit(const char *str) ATTRIBUTE_NORETURN;
 static void error_exit(const char *str)

Modified: trunk/busybox/util-linux/fsck_minix.c
===================================================================
--- trunk/busybox/util-linux/fsck_minix.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/util-linux/fsck_minix.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -244,15 +244,15 @@
 	return (size + n-1) / n;
 }
 
-#if ENABLE_FEATURE_MINIX2
-#define INODE_BLOCKS div_roundup(INODES, (version2 ? MINIX2_INODES_PER_BLOCK \
-				    : MINIX1_INODES_PER_BLOCK))
+#if !ENABLE_FEATURE_MINIX2
+#define INODE_BLOCKS            div_roundup(INODES, MINIX1_INODES_PER_BLOCK)
 #else
-#define INODE_BLOCKS div_roundup(INODES, MINIX1_INODES_PER_BLOCK)
+#define INODE_BLOCKS            div_roundup(INODES, \
+                                (version2 ? MINIX2_INODES_PER_BLOCK : MINIX1_INODES_PER_BLOCK))
 #endif
 
-#define INODE_BUFFER_SIZE (INODE_BLOCKS * BLOCK_SIZE)
-#define NORM_FIRSTZONE    (2 + IMAPS + ZMAPS + INODE_BLOCKS)
+#define INODE_BUFFER_SIZE       (INODE_BLOCKS * BLOCK_SIZE)
+#define NORM_FIRSTZONE          (2 + IMAPS + ZMAPS + INODE_BLOCKS)
 
 /* Before you ask "where they come from?": */
 /* setbit/clrbit are supplied by sys/param.h */

Modified: trunk/busybox/util-linux/mdev.c
===================================================================
--- trunk/busybox/util-linux/mdev.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/util-linux/mdev.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -300,9 +300,9 @@
 
 /* File callback for /sys/ traversal */
 static int fileAction(const char *fileName,
-                      struct stat *statbuf ATTRIBUTE_UNUSED,
-                      void *userData,
-                      int depth ATTRIBUTE_UNUSED)
+		struct stat *statbuf ATTRIBUTE_UNUSED,
+		void *userData,
+		int depth ATTRIBUTE_UNUSED)
 {
 	size_t len = strlen(fileName) - 4; /* can't underflow */
 	char *scratch = userData;
@@ -320,9 +320,9 @@
 
 /* Directory callback for /sys/ traversal */
 static int dirAction(const char *fileName ATTRIBUTE_UNUSED,
-                      struct stat *statbuf ATTRIBUTE_UNUSED,
-                      void *userData ATTRIBUTE_UNUSED,
-                      int depth)
+		struct stat *statbuf ATTRIBUTE_UNUSED,
+		void *userData ATTRIBUTE_UNUSED,
+		int depth)
 {
 	return (depth >= MAX_SYSFS_DEPTH ? SKIP : TRUE);
 }

Modified: trunk/busybox/util-linux/mkfs_minix.c
===================================================================
--- trunk/busybox/util-linux/mkfs_minix.c	2008-06-25 00:13:12 UTC (rev 22496)
+++ trunk/busybox/util-linux/mkfs_minix.c	2008-06-25 09:53:17 UTC (rev 22497)
@@ -149,7 +149,7 @@
 #else
 # define SB_ZONES               (version2 ? SB.s_zones : SB.s_nzones)
 # define INODE_BLOCKS           div_roundup(SB_INODES, \
-                                version2 ? MINIX2_INODES_PER_BLOCK : MINIX1_INODES_PER_BLOCK)
+                                (version2 ? MINIX2_INODES_PER_BLOCK : MINIX1_INODES_PER_BLOCK))
 #endif
 
 #define INODE_BUFFER_SIZE       (INODE_BLOCKS * BLOCK_SIZE)




More information about the busybox-cvs mailing list