From b71c668c577f7780362f7ea632895c11e3760d66 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 21 Jul 2007 15:08:09 +0000 Subject: style fix (stray space before ';') --- e2fsprogs/old_e2fsprogs/chattr.c | 2 +- e2fsprogs/old_e2fsprogs/e2fsck.c | 4 ++-- e2fsprogs/old_e2fsprogs/ext2fs/badblocks.c | 2 +- e2fsprogs/old_e2fsprogs/ext2fs/block.c | 2 +- e2fsprogs/old_e2fsprogs/ext2fs/fileio.c | 2 +- e2fsprogs/old_e2fsprogs/ext2fs/openfs.c | 2 +- e2fsprogs/old_e2fsprogs/fsck.c | 2 +- e2fsprogs/old_e2fsprogs/mke2fs.c | 8 ++++---- 8 files changed, 12 insertions(+), 12 deletions(-) (limited to 'e2fsprogs/old_e2fsprogs') diff --git a/e2fsprogs/old_e2fsprogs/chattr.c b/e2fsprogs/old_e2fsprogs/chattr.c index 8f62a5d10..b9339387d 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 44ae11734..efb870076 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 7804396d7..6e5cc10b8 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 0a757b201..498096995 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 c56a21aa8..5a5ad3ef8 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 716be060f..1b271196b 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 0ad62ca04..cf398079c 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 9ea5d5c92..c1deefdb7 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; -- cgit v1.2.3