summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2009-04-22 14:35:45 -0400
committerTheodore Ts'o <tytso@mit.edu>2009-04-22 14:41:12 -0400
commit022c925c5a2e92269f5795ba85719f75874e8424 (patch)
tree6f935e26c194ecfddf64aaa1c7f472101ba7120d /lib
parent14b596d40997c7e55ec8928bd222787f96808a2b (diff)
downloade2fsprogs-022c925c5a2e92269f5795ba85719f75874e8424.tar.gz
libe2p: Declare prototypes for the journal feature name functions in e2p.h
Define the prototypes for e2p_jrnl_feature2string() and e2p_jrnl_string2feature() in e2p.h. This promotes better error checking and avoids warnings when compiling the library and programs that call these functions. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib')
-rw-r--r--lib/e2p/e2p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/e2p/e2p.h b/lib/e2p/e2p.h
index 98c97db4..d125e144 100644
--- a/lib/e2p/e2p.h
+++ b/lib/e2p/e2p.h
@@ -37,7 +37,9 @@ int setflags (int fd, unsigned long flags);
int setversion (int fd, unsigned long version);
const char *e2p_feature2string(int compat, unsigned int mask);
+const char *e2p_jrnl_feature2string(int compat, unsigned int mask);
int e2p_string2feature(char *string, int *compat, unsigned int *mask);
+int e2p_jrnl_string2feature(char *string, int *compat_type, unsigned int *mask);
int e2p_edit_feature(const char *str, __u32 *compat_array, __u32 *ok_array);
int e2p_edit_feature2(const char *str, __u32 *compat_array, __u32 *ok_array,
__u32 *clear_ok_array, int *type_err,