OSDN Git Service

e2fsck,misc: include ext2fs.h to avoid clang warnings
authorTheodore Ts'o <tytso@mit.edu>
Sat, 23 May 2015 22:08:35 +0000 (18:08 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 23 May 2015 22:08:35 +0000 (18:08 -0400)
e2fsck/dirinfo.c and misc/e4crypt.c use functions from libext2fs, so
we need to include its header file or clang will complain.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/dirinfo.c
misc/e4crypt.c

index dab5a13..9b36ddc 100644 (file)
@@ -13,6 +13,7 @@
 #include <fcntl.h>
 #include "uuid/uuid.h"
 
+#include "ext2fs/ext2fs.h"
 #include <ext2fs/tdb.h>
 
 struct dir_info_db {
index b99421a..05bd00b 100644 (file)
@@ -41,6 +41,7 @@
 #include <asm/unistd.h>
 
 #include "ext2fs/ext2_fs.h"
+#include "ext2fs/ext2fs.h"
 #include "uuid/uuid.h"
 
 /* special process keyring shortcut IDs */