aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ext2fs/ext2fs.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2013-05-19 22:12:36 -0400
committerTheodore Ts'o <tytso@mit.edu>2013-05-19 22:12:36 -0400
commit894eaf85065f3a0ee023704eeba56799ec5bf6eb (patch)
tree11b96942ac4a8dcaf3189497fc2e98fe1302e097 /lib/ext2fs/ext2fs.h
parent581ecb6d8808a083add919f066f44cf7e70f9c4a (diff)
downloade2fsprogs-894eaf85065f3a0ee023704eeba56799ec5bf6eb.tar.gz
e2fsprogs-894eaf85065f3a0ee023704eeba56799ec5bf6eb.tar.xz
e2fsprogs-894eaf85065f3a0ee023704eeba56799ec5bf6eb.zip
libext2fs: fix gcc -Wall nits
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs/ext2fs.h')
-rw-r--r--lib/ext2fs/ext2fs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h
index cd594730..6923f343 100644
--- a/lib/ext2fs/ext2fs.h
+++ b/lib/ext2fs/ext2fs.h
@@ -963,13 +963,15 @@ extern int ext2fs_ext_attr_block_csum_verify(ext2_filsys fs, ext2_ino_t inum,
blk64_t block,
struct ext2_ext_attr_header *hdr);
#define EXT2_DIRENT_TAIL(block, blocksize) \
- ((struct ext2_dir_entry_tail *)(((void *)(block)) + \
+ ((struct ext2_dir_entry_tail *)(((char *)(block)) + \
(blocksize) - sizeof(struct ext2_dir_entry_tail)))
extern void ext2fs_initialize_dirent_tail(ext2_filsys fs,
struct ext2_dir_entry_tail *t);
extern int ext2fs_dirent_has_tail(ext2_filsys fs,
struct ext2_dir_entry *dirent);
+extern int ext2fs_dirent_csum_verify(ext2_filsys fs, ext2_ino_t inum,
+ struct ext2_dir_entry *dirent);
extern int ext2fs_dir_block_csum_verify(ext2_filsys fs, ext2_ino_t inum,
struct ext2_dir_entry *dirent);
extern errcode_t ext2fs_dir_block_csum_set(ext2_filsys fs, ext2_ino_t inum,