libcom_err: Add missing type declarations to clean up -Wall warnings
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
diff --git a/lib/et/error_message.c b/lib/et/error_message.c
index d0e90e1..1b08c16 100644
--- a/lib/et/error_message.c
+++ b/lib/et/error_message.c
@@ -61,15 +61,15 @@
#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 @@
#endif
-int et_list_lock()
+int et_list_lock(void)
{
#ifdef HAVE_SEM_INIT
if (!_et_lock_initialized)
@@ -88,7 +88,7 @@
#endif
}
-int et_list_unlock()
+int et_list_unlock(void)
{
#ifdef HAVE_SEM_INIT
if (_et_lock_initialized)