diff options
author | Andreas Dilger <adilger@whamcloud.com> | 2011-09-24 12:59:31 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-09-24 13:00:24 -0400 |
commit | 6b56f3d92d08806ab415e8fd883480f7f9c148e8 (patch) | |
tree | aab94e809cda4d95c1bc81712dd1a8859d65b942 /misc | |
parent | 9d9a53e651fa877eb4f9df0bfd97fbcc5f514293 (diff) | |
download | e2fsprogs-6b56f3d92d08806ab415e8fd883480f7f9c148e8.tar.gz |
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 <adilger@whamcloud.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/tune2fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |