]> granicus.if.org Git - libevent/commitdiff
Fix "function declaration isn’t a prototype"
authorThomas Bernard <miniupnp@free.fr>
Mon, 16 Feb 2015 22:41:53 +0000 (23:41 +0100)
committerThomas Bernard <miniupnp@free.fr>
Mon, 16 Feb 2015 22:41:53 +0000 (23:41 +0100)
add "void" to argument list

evthread-internal.h
test/regress_bufferevent.c

index 16adf167d2e5bf7e40012aa9a1dc8a76b970d15e..efdecf81e7cd5a29cd57ad7c085188816e3c4ea6 100644 (file)
@@ -377,9 +377,9 @@ int evutil_global_setup_locks_(const int enable_locks);
 int evutil_secure_rng_global_setup_locks_(const int enable_locks);
 
 /** Return current evthread_lock_callbacks */
-struct evthread_lock_callbacks *evthread_get_lock_callbacks();
+struct evthread_lock_callbacks *evthread_get_lock_callbacks(void);
 /** Return current evthread_condition_callbacks */
-struct evthread_condition_callbacks *evthread_get_condition_callbacks();
+struct evthread_condition_callbacks *evthread_get_condition_callbacks(void);
 /** Disable locking for internal usage (like global shutdown) */
 void evthreadimpl_disable_lock_debugging_(void);
 
index a1998ba62cd1de161c2598584651b52b3caa4fd4..ea64202ad7d6c90551764bb12f569259c4ca0214 100644 (file)
@@ -273,7 +273,7 @@ static int trace_lock_unlock(unsigned mode, void *lock_)
                return lu_base.cbs.unlock(mode, lock_);
        }
 }
-static void lock_unlock_free_thread_cbs()
+static void lock_unlock_free_thread_cbs(void)
 {
        event_base_free(NULL);