summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2008-10-02 08:51:27 -0400
committerTheodore Ts'o <tytso@mit.edu>2008-10-02 08:52:38 -0400
commit98e9fb9d539ca645f11345b33854fe204915c080 (patch)
treee27588d3d9896ef336f9859d819f17464355df66 /lib
parent08c8b1ab342f624b48e5fe517be5a140ca8b92de (diff)
downloade2fsprogs-98e9fb9d539ca645f11345b33854fe204915c080.tar.gz
libcom_err: Add missing type declarations to clean up -Wall warnings
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib')
-rw-r--r--lib/et/error_message.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/et/error_message.c b/lib/et/error_message.c
index d0e90e11..1b08c166 100644
--- a/lib/et/error_message.c
+++ b/lib/et/error_message.c
@@ -61,15 +61,15 @@ struct et_list * _et_dynamic_list = (struct et_list *) NULL;
#ifdef HAVE_SEM_INIT
static sem_t _et_lock;
-static _et_lock_initialized;
+static int _et_lock_initialized;
-static COMERR_ATTR((constructor)) setup_et_lock()
+static void COMERR_ATTR((constructor)) setup_et_lock(void)
{
sem_init(&_et_lock, 0, 1);
_et_lock_initialized = 1;
}
-static COMERR_ATTR((destructor)) fini_et_lock()
+static void COMERR_ATTR((destructor)) fini_et_lock(void)
{
sem_destroy(&_et_lock);
_et_lock_initialized = 0;
@@ -77,7 +77,7 @@ static COMERR_ATTR((destructor)) fini_et_lock()
#endif
-int et_list_lock()
+int et_list_lock(void)
{
#ifdef HAVE_SEM_INIT
if (!_et_lock_initialized)
@@ -88,7 +88,7 @@ int et_list_lock()
#endif
}
-int et_list_unlock()
+int et_list_unlock(void)
{
#ifdef HAVE_SEM_INIT
if (_et_lock_initialized)