$(srcdir)/debugfs.h $(top_srcdir)/lib/ext2fs/ext2fs.h \
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
$(top_srcdir)/lib/ext2fs/bitops.h $(top_srcdir)/lib/uuid/uuid.h \
- $(srcdir)/../version.h
+ $(top_srcdir)/lib/e2p/e2p.h $(srcdir)/../version.h
util.o: $(srcdir)/util.c $(srcdir)/debugfs.h \
$(top_srcdir)/lib/ext2fs/ext2fs.h $(top_srcdir)/lib/et/com_err.h \
$(top_srcdir)/lib/ext2fs/ext2_io.h $(top_builddir)/lib/ext2fs/ext2_err.h \
typed variables. Eliminated non-portable use of u_char.
* mke2fs.c (PRS): Fix gcc warnings; add const to some char *
- variables, including in struct mke2fs_defaults.
+ variables, including in struct mke2fs_defaults.
+ (set_fs_defaults): Changed parameter name to avoid
+ gcc warnings.
* fsck.c (wait_one): Fix gcc warnings; add #include for ctype.h,
add const to char * variables, and use NOARGS to declare
{ 0, 0, 0, 0},
};
-static void set_fs_defaults(char *fs_type, struct ext2fs_sb *param,
+static void set_fs_defaults(char *fs_type, struct ext2fs_sb *super,
int blocksize, int *inode_ratio)
{
int megs;
int ratio = 0;
struct mke2fs_defaults *p;
- megs = (param->s_blocks_count * (EXT2_BLOCK_SIZE(param) / 1024) /
+ megs = (super->s_blocks_count * (EXT2_BLOCK_SIZE(super) / 1024) /
1024);
if (inode_ratio)
ratio = *inode_ratio;
if (ratio == 0)
*inode_ratio = p->inode_ratio;
if (blocksize == 0) {
- param->s_log_frag_size = param->s_log_block_size =
+ super->s_log_frag_size = super->s_log_block_size =
log2(p->blocksize >> EXT2_MIN_BLOCK_LOG_SIZE);
}
}
if (blocksize == 0)
- param->s_blocks_count /= EXT2_BLOCK_SIZE(param) / 1024;
+ super->s_blocks_count /= EXT2_BLOCK_SIZE(super) / 1024;
}
/*