From: Theodore Ts'o Date: Wed, 22 Apr 2009 18:41:32 +0000 (-0400) Subject: libcom_err: Declare prototypes for et_list_lock/unlock in com_err.h X-Git-Tag: v1.41.5~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3395ae71a38ff562e0af3a174ecbc5b523057d6;p=thirdparty%2Fe2fsprogs.git libcom_err: Declare prototypes for et_list_lock/unlock in com_err.h 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" --- diff --git a/lib/et/com_err.h b/lib/et/com_err.h index 1c6ce94ce..de0146e22 100644 --- a/lib/et/com_err.h +++ b/lib/et/com_err.h @@ -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__)*/