]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
libcom_err: Add missing type declarations to clean up -Wall warnings
authorTheodore Ts'o <tytso@mit.edu>
Thu, 2 Oct 2008 12:51:27 +0000 (08:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 2 Oct 2008 12:52:38 +0000 (08:52 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/et/error_message.c

index d0e90e11bc36cb95ba9cb60538cb12d427d12352..1b08c16600c3fb70750d2cb79b3286b8ebc7ae2f 100644 (file)
@@ -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)