svn commit: trunk/busybox: e2fsprogs/old_e2fsprogs e2fsprogs/old_e2 etc...

vda at busybox.net vda at busybox.net
Sat Sep 27 14:03:25 UTC 2008


Author: vda
Date: 2008-09-27 07:03:25 -0700 (Sat, 27 Sep 2008)
New Revision: 23532

Log:
style fixes, no code changes



Modified:
   trunk/busybox/e2fsprogs/old_e2fsprogs/ext2fs/res_gdt.c
   trunk/busybox/e2fsprogs/old_e2fsprogs/mke2fs.c
   trunk/busybox/e2fsprogs/old_e2fsprogs/util.c
   trunk/busybox/miscutils/hdparm.c
   trunk/busybox/shell/ash.c


Changeset:
Modified: trunk/busybox/e2fsprogs/old_e2fsprogs/ext2fs/res_gdt.c
===================================================================
--- trunk/busybox/e2fsprogs/old_e2fsprogs/ext2fs/res_gdt.c	2008-09-27 14:01:22 UTC (rev 23531)
+++ trunk/busybox/e2fsprogs/old_e2fsprogs/ext2fs/res_gdt.c	2008-09-27 14:03:25 UTC (rev 23532)
@@ -113,7 +113,7 @@
 		inode_size *= fs->blocksize;
 		inode.i_size = inode_size & 0xFFFFFFFF;
 		inode.i_size_high = (inode_size >> 32) & 0xFFFFFFFF;
-		if(inode.i_size_high) {
+		if (inode.i_size_high) {
 			sb->s_feature_ro_compat |=
 				EXT2_FEATURE_RO_COMPAT_LARGE_FILE;
 		}

Modified: trunk/busybox/e2fsprogs/old_e2fsprogs/mke2fs.c
===================================================================
--- trunk/busybox/e2fsprogs/old_e2fsprogs/mke2fs.c	2008-09-27 14:01:22 UTC (rev 23531)
+++ trunk/busybox/e2fsprogs/old_e2fsprogs/mke2fs.c	2008-09-27 14:03:25 UTC (rev 23532)
@@ -676,7 +676,7 @@
 		return 1;
 	}
 
-	if((sb->s_creator_os = e2p_string2os(os)) >= 0) {
+	if ((sb->s_creator_os = e2p_string2os(os)) >= 0) {
 		return 1;
 	} else if (!strcasecmp("GNU", os)) {
 		sb->s_creator_os = EXT2_OS_HURD;
@@ -1187,7 +1187,7 @@
 
 	if (ENABLE_FEATURE_CLEAN_UP)
 		atexit(mke2fs_clean_up);
-	if(!PRS(argc, argv))
+	if (!PRS(argc, argv))
 		return 0;
 
 #ifdef CONFIG_TESTIO_DEBUG

Modified: trunk/busybox/e2fsprogs/old_e2fsprogs/util.c
===================================================================
--- trunk/busybox/e2fsprogs/old_e2fsprogs/util.c	2008-09-27 14:01:22 UTC (rev 23531)
+++ trunk/busybox/e2fsprogs/old_e2fsprogs/util.c	2008-09-27 14:03:25 UTC (rev 23532)
@@ -37,7 +37,7 @@
 	val = stat(device, &s);
 	if (force)
 		return;
-	if(val == -1)
+	if (val == -1)
 		bb_perror_msg_and_die("cannot stat %s", device);
 	if (!S_ISBLK(s.st_mode)) {
 		printf("%s is not a block special device.\n", device);
@@ -220,13 +220,13 @@
 					fs->blocksize, io_ptr, &jfs);
 	if (retval)
 		bb_error_msg_and_die("cannot journal device %s", journal_device);
-	if(!quiet)
+	if (!quiet)
 		printf("Adding journal to device %s: ", journal_device);
 	fflush(stdout);
 	retval = ext2fs_add_journal_device(fs, jfs);
-	if(retval)
+	if (retval)
 		bb_error_msg_and_die("\nFailed to add journal to device %s", journal_device);
-	if(!quiet)
+	if (!quiet)
 		puts("done");
 	ext2fs_close(jfs);
 }
@@ -242,14 +242,14 @@
 			~EXT3_FEATURE_COMPAT_HAS_JOURNAL;
 		return;
 	}
-	if(!quiet)
+	if (!quiet)
 		printf("Creating journal (%ld blocks): ", journal_blocks);
 	fflush(stdout);
 	retval = ext2fs_add_journal_inode(fs, journal_blocks,
 						  journal_flags);
-	if(retval)
+	if (retval)
 		bb_error_msg_and_die("cannot create journal");
-	if(!quiet)
+	if (!quiet)
 		puts("done");
 }
 
@@ -262,6 +262,6 @@
 		oldpath = xasprintf("%s:%s", PATH_SET, oldpath);
 	 else
 		oldpath = PATH_SET;
-	putenv (oldpath);
+	putenv(oldpath);
 	return oldpath;
 }

Modified: trunk/busybox/miscutils/hdparm.c
===================================================================
--- trunk/busybox/miscutils/hdparm.c	2008-09-27 14:01:22 UTC (rev 23531)
+++ trunk/busybox/miscutils/hdparm.c	2008-09-27 14:03:25 UTC (rev 23532)
@@ -1759,7 +1759,7 @@
 		}
 	}
 	if (get_unmask) {
-		if(!ioctl_or_warn(fd, HDIO_GET_UNMASKINTR, &parm))
+		if (!ioctl_or_warn(fd, HDIO_GET_UNMASKINTR, &parm))
 			print_value_on_off("unmaskirq", parm);
 	}
 
@@ -1777,25 +1777,25 @@
 #endif
 #ifdef HDIO_GET_QDMA
 	if (get_dma_q) {
-		if(!ioctl_or_warn(fd, HDIO_GET_QDMA, &parm))
+		if (!ioctl_or_warn(fd, HDIO_GET_QDMA, &parm))
 			print_value_on_off("queue_depth", parm);
 	}
 #endif
 	if (get_keep) {
-		if(!ioctl_or_warn(fd, HDIO_GET_KEEPSETTINGS, &parm))
+		if (!ioctl_or_warn(fd, HDIO_GET_KEEPSETTINGS, &parm))
 			print_value_on_off("keepsettings", parm);
 	}
 
 	if (get_nowerr) {
-		if(!ioctl_or_warn(fd, HDIO_GET_NOWERR, &parm))
+		if (!ioctl_or_warn(fd, HDIO_GET_NOWERR, &parm))
 			print_value_on_off("nowerr", parm);
 	}
 	if (get_readonly) {
-		if(!ioctl_or_warn(fd, BLKROGET, &parm))
+		if (!ioctl_or_warn(fd, BLKROGET, &parm))
 			print_value_on_off("readonly", parm);
 	}
 	if (get_readahead) {
-		if(!ioctl_or_warn(fd, BLKRAGET, &parm))
+		if (!ioctl_or_warn(fd, BLKRAGET, &parm))
 			print_value_on_off("readahead", parm);
 	}
 	if (get_geom) {

Modified: trunk/busybox/shell/ash.c
===================================================================
--- trunk/busybox/shell/ash.c	2008-09-27 14:01:22 UTC (rev 23531)
+++ trunk/busybox/shell/ash.c	2008-09-27 14:03:25 UTC (rev 23532)
@@ -5980,7 +5980,7 @@
 
 			/* We must adjust the length by the number of escapes we find. */
 			for (ptr = startp; ptr < (str - 1); ptr++) {
-				if(*ptr == CTLESC) {
+				if (*ptr == CTLESC) {
 					len--;
 					ptr++;
 				}
@@ -6056,7 +6056,7 @@
 	if (subtype == VSREPLACE || subtype == VSREPLACEALL) {
 		char *idx, *end, *restart_detect;
 
-		if(!repl) {
+		if (!repl) {
 			repl = parse_sub_pattern(str, varflags & VSQUOTE);
 			if (!repl)
 				repl = &null;




More information about the busybox-cvs mailing list