From 6b56f3d92d08806ab415e8fd883480f7f9c148e8 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Sat, 24 Sep 2011 12:59:31 -0400 Subject: misc: quiet minor compiler errors Several compiler errors are quieted: - zero-length gnu_printf format string - unused variable - uninitalized variable (though it isn't actually used for anything) - fixed a bug in ext2fs_stat() if stat64() does not exist Signed-off-by: Andreas Dilger Signed-off-by: Theodore Ts'o --- misc/tune2fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/tune2fs.c b/misc/tune2fs.c index 11ef0958..3e126971 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -2017,7 +2017,7 @@ retry_open: printf(_("Setting stripe width to %d\n"), stripe_width); } if (ext_mount_opts) { - strncpy(fs->super->s_mount_opts, ext_mount_opts, + strncpy((char *)(fs->super->s_mount_opts), ext_mount_opts, sizeof(fs->super->s_mount_opts)); fs->super->s_mount_opts[sizeof(fs->super->s_mount_opts)-1] = 0; ext2fs_mark_super_dirty(fs); -- cgit v1.2.3