style fix (stray space before ';')
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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++;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user