summaryrefslogtreecommitdiff
path: root/e2fsprogs/old_e2fsprogs
diff options
context:
space:
mode:
authorDenis Vlasenko2007-07-21 15:08:09 +0000
committerDenis Vlasenko2007-07-21 15:08:09 +0000
commitb71c668c577f7780362f7ea632895c11e3760d66 (patch)
tree860ccf38cce8c5347ae2b714a22b82a1d7dba323 /e2fsprogs/old_e2fsprogs
parent82bd9ee64546c4f6f60303f6356377ce6b695a06 (diff)
downloadbusybox-b71c668c577f7780362f7ea632895c11e3760d66.zip
busybox-b71c668c577f7780362f7ea632895c11e3760d66.tar.gz
style fix (stray space before ';')
Diffstat (limited to 'e2fsprogs/old_e2fsprogs')
-rw-r--r--e2fsprogs/old_e2fsprogs/chattr.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/e2fsck.c4
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/badblocks.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/block.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/fileio.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/ext2fs/openfs.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/fsck.c2
-rw-r--r--e2fsprogs/old_e2fsprogs/mke2fs.c8
8 files changed, 12 insertions, 12 deletions
diff --git a/e2fsprogs/old_e2fsprogs/chattr.c b/e2fsprogs/old_e2fsprogs/chattr.c
index 8f62a5d..b933938 100644
--- a/e2fsprogs/old_e2fsprogs/chattr.c
+++ b/e2fsprogs/old_e2fsprogs/chattr.c
@@ -101,7 +101,7 @@ static int decode_arg(char *arg)
} else
return EOF;
- for (; *arg ; ++arg)
+ for (; *arg; ++arg)
(*fl) |= get_flag(*arg);
return 1;
diff --git a/e2fsprogs/old_e2fsprogs/e2fsck.c b/e2fsprogs/old_e2fsprogs/e2fsck.c
index 44ae117..efb8700 100644
--- a/e2fsprogs/old_e2fsprogs/e2fsck.c
+++ b/e2fsprogs/old_e2fsprogs/e2fsck.c
@@ -4701,7 +4701,7 @@ static void add_dupe(e2fsck_t ctx, ext2_ino_t ino, blk_t blk,
else {
di = (struct dup_inode *) e2fsck_allocate_memory(ctx,
sizeof(struct dup_inode), "duplicate inode header");
- di->dir = (ino == EXT2_ROOT_INO) ? EXT2_ROOT_INO : 0 ;
+ di->dir = (ino == EXT2_ROOT_INO) ? EXT2_ROOT_INO : 0;
di->num_dupblocks = 0;
di->block_list = 0;
di->inode = *inode;
@@ -12490,7 +12490,7 @@ blk_t get_backup_sb(e2fsck_t ctx, ext2_filsys fs, const char *name,
sb = (struct ext2_super_block *) buf;
for (blocksize = EXT2_MIN_BLOCK_SIZE;
- blocksize <= EXT2_MAX_BLOCK_SIZE ; blocksize *= 2) {
+ blocksize <= EXT2_MAX_BLOCK_SIZE; blocksize *= 2) {
superblock = blocksize*8;
if (blocksize == 1024)
superblock++;
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/badblocks.c b/e2fsprogs/old_e2fsprogs/ext2fs/badblocks.c
index 7804396..6e5cc10 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/badblocks.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/badblocks.c
@@ -223,7 +223,7 @@ int ext2fs_u32_list_del(ext2_u32_list bb, __u32 blk)
if (remloc < 0)
return -1;
- for (i = remloc ; i < bb->num-1; i++)
+ for (i = remloc; i < bb->num - 1; i++)
bb->list[i] = bb->list[i+1];
bb->num--;
return 0;
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/block.c b/e2fsprogs/old_e2fsprogs/ext2fs/block.c
index 0a757b2..4980969 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/block.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/block.c
@@ -343,7 +343,7 @@ errcode_t ext2fs_block_iterate2(ext2_filsys fs,
/*
* Iterate over normal data blocks
*/
- for (i = 0; i < EXT2_NDIR_BLOCKS ; i++, ctx.bcount++) {
+ for (i = 0; i < EXT2_NDIR_BLOCKS; i++, ctx.bcount++) {
if (blocks[i] || (flags & BLOCK_FLAG_APPEND)) {
ret |= (*ctx.func)(fs, &blocks[i],
ctx.bcount, 0, i, priv_data);
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/fileio.c b/e2fsprogs/old_e2fsprogs/ext2fs/fileio.c
index c56a21a..5a5ad3e 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/fileio.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/fileio.c
@@ -228,7 +228,7 @@ errcode_t ext2fs_file_read(ext2_file_t file, void *buf,
c = fs->blocksize - start;
if (c > wanted)
c = wanted;
- left = EXT2_I_SIZE(&file->inode) - file->pos ;
+ left = EXT2_I_SIZE(&file->inode) - file->pos;
if (c > left)
c = left;
diff --git a/e2fsprogs/old_e2fsprogs/ext2fs/openfs.c b/e2fsprogs/old_e2fsprogs/ext2fs/openfs.c
index 716be06..1b27119 100644
--- a/e2fsprogs/old_e2fsprogs/ext2fs/openfs.c
+++ b/e2fsprogs/old_e2fsprogs/ext2fs/openfs.c
@@ -273,7 +273,7 @@ errcode_t ext2fs_open2(const char *name, const char *io_options,
group_block = fs->super->s_first_data_block;
dest = (char *) fs->group_desc;
groups_per_block = fs->blocksize / sizeof(struct ext2_group_desc);
- for (i=0 ; i < fs->desc_blocks; i++) {
+ for (i = 0; i < fs->desc_blocks; i++) {
blk = ext2fs_descriptor_block_loc(fs, group_block, i);
retval = io_channel_read_blk(fs->io, blk, 1, dest);
if (retval)
diff --git a/e2fsprogs/old_e2fsprogs/fsck.c b/e2fsprogs/old_e2fsprogs/fsck.c
index 0ad62ca..cf39807 100644
--- a/e2fsprogs/old_e2fsprogs/fsck.c
+++ b/e2fsprogs/old_e2fsprogs/fsck.c
@@ -1357,7 +1357,7 @@ int fsck_main(int argc, char **argv)
interactive++;
return check_all();
}
- for (i = 0 ; i < num_devices; i++) {
+ for (i = 0; i < num_devices; i++) {
if (cancel_requested) {
if (!kill_sent) {
kill_all(SIGTERM);
diff --git a/e2fsprogs/old_e2fsprogs/mke2fs.c b/e2fsprogs/old_e2fsprogs/mke2fs.c
index 9ea5d5c..c1deefd 100644
--- a/e2fsprogs/old_e2fsprogs/mke2fs.c
+++ b/e2fsprogs/old_e2fsprogs/mke2fs.c
@@ -59,14 +59,14 @@ static char *creator_os;
static char *volume_label;
static char *mount_dir;
static char *journal_device = NULL;
-static int sync_kludge; /* Set using the MKE2FS_SYNC env. option */
+static int sync_kludge; /* Set using the MKE2FS_SYNC env. option */
static int sys_page_size = 4096;
static int linux_version_code = 0;
static int int_log2(int arg)
{
- int l = 0;
+ int l = 0;
arg >>= 1;
while (arg) {
@@ -80,7 +80,7 @@ static int int_log10(unsigned int arg)
{
int l;
- for (l=0; arg ; l++)
+ for (l = 0; arg; l++)
arg = arg / 10;
return l;
}
@@ -1226,7 +1226,7 @@ int mke2fs_main (int argc, char **argv)
* don't check all the filesystems at the same time. We use a
* kludgy hack of using the UUID to derive a random jitter value.
*/
- for (i = 0, val = 0 ; i < sizeof(fs->super->s_uuid); i++)
+ for (i = 0, val = 0; i < sizeof(fs->super->s_uuid); i++)
val += fs->super->s_uuid[i];
fs->super->s_max_mnt_count += val % EXT2_DFL_MAX_MNT_COUNT;