]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
ext2fs: quiet compiler warnings
authorAndreas Dilger <adilger@dilger.ca>
Mon, 16 Dec 2013 04:26:25 +0000 (23:26 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 16 Dec 2013 04:26:31 +0000 (23:26 -0500)
commit269da3b8068ecb0bdf8077b0f7b27f164203cb35
tree8e0f6b30083fc05fe23b5c65ed35cd1132f07a42
parentdba2bbdfea74b482d4f3b6a3813a71c2358e57d6
ext2fs: quiet compiler warnings

Include ext2fsP.h in fileio.c for ext2fs_file_block_offset_too_big()
declaration.  Fix up the declaration to mark it extern in the header.

Include <strings.h> header for strcasecmp() in tune2fs.c if available,
as described in the strcasecmp(3) man page, instead of doing this
indirectly by declaring _BSD_SOURCE and getting it from <string.h>.

If CONFIG_QUOTA is undefined, parse_quota_opts() is unused in
tune2fs.c so #ifdef it out.

Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/ext2fsP.h
lib/ext2fs/fileio.c
misc/tune2fs.c