From: Thomas Bernard Date: Mon, 16 Feb 2015 22:41:53 +0000 (+0100) Subject: Fix "function declaration isn’t a prototype" X-Git-Tag: release-2.1.6-beta~93^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=746d2c502cc3552cca91f91846c6791f648c7205;p=libevent Fix "function declaration isn’t a prototype" add "void" to argument list --- diff --git a/evthread-internal.h b/evthread-internal.h index 16adf167..efdecf81 100644 --- a/evthread-internal.h +++ b/evthread-internal.h @@ -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); diff --git a/test/regress_bufferevent.c b/test/regress_bufferevent.c index a1998ba6..ea64202a 100644 --- a/test/regress_bufferevent.c +++ b/test/regress_bufferevent.c @@ -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);