From 022c925c5a2e92269f5795ba85719f75874e8424 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Wed, 22 Apr 2009 14:35:45 -0400 Subject: [PATCH] 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" --- lib/e2p/e2p.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/e2p/e2p.h b/lib/e2p/e2p.h index 98c97db..d125e14 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, -- 1.8.3.1