]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
libcom_err: Declare prototypes for et_list_lock/unlock in com_err.h
authorTheodore Ts'o <tytso@mit.edu>
Wed, 22 Apr 2009 18:41:32 +0000 (14:41 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 22 Apr 2009 18:41:32 +0000 (14:41 -0400)
Define the prototypes for et_list_lock() and et_list_unlock() in
com_err.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>
lib/et/com_err.h

index 1c6ce94ce7be4aa1ee04e676eb765c1816cfd18b..de0146e2242619bd97bef3064137114876b4d423 100644 (file)
@@ -55,6 +55,10 @@ extern void initialize_error_table_r(struct et_list **list,
                                     long base);
 extern void free_error_table(struct et_list *et);
 
+/* Provided for compatibility with other com_err libraries */
+extern int et_list_lock(void);
+extern int et_list_unlock(void);
+
 #define __COM_ERR_H
 #define __COM_ERR_H__
 #endif /* !defined(__COM_ERR_H) && !defined(__COM_ERR_H__)*/