diff options
author | Andreas Dilger <adilger@dilger.ca> | 2013-12-15 23:26:25 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-12-15 23:26:31 -0500 |
commit | 269da3b8068ecb0bdf8077b0f7b27f164203cb35 (patch) | |
tree | 8e0f6b30083fc05fe23b5c65ed35cd1132f07a42 /lib | |
parent | dba2bbdfea74b482d4f3b6a3813a71c2358e57d6 (diff) | |
download | android_external_e2fsprogs-269da3b8068ecb0bdf8077b0f7b27f164203cb35.tar.gz android_external_e2fsprogs-269da3b8068ecb0bdf8077b0f7b27f164203cb35.tar.bz2 android_external_e2fsprogs-269da3b8068ecb0bdf8077b0f7b27f164203cb35.zip |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ext2fs/ext2fsP.h | 6 | ||||
-rw-r--r-- | lib/ext2fs/fileio.c | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/ext2fs/ext2fsP.h b/lib/ext2fs/ext2fsP.h index 99c0c1ba..a88db93e 100644 --- a/lib/ext2fs/ext2fsP.h +++ b/lib/ext2fs/ext2fsP.h @@ -142,6 +142,6 @@ extern void ext2fs_warn_bitmap32(ext2fs_generic_bitmap bitmap,const char *func); extern int ext2fs_mem_is_zero(const char *mem, size_t len); -int ext2fs_file_block_offset_too_big(ext2_filsys fs, - struct ext2_inode *inode, - blk64_t offset); +extern int ext2fs_file_block_offset_too_big(ext2_filsys fs, + struct ext2_inode *inode, + blk64_t offset); diff --git a/lib/ext2fs/fileio.c b/lib/ext2fs/fileio.c index 582b306a..77328042 100644 --- a/lib/ext2fs/fileio.c +++ b/lib/ext2fs/fileio.c @@ -18,6 +18,7 @@ #include "ext2_fs.h" #include "ext2fs.h" +#include "ext2fsP.h" struct ext2_file { errcode_t magic; |