mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 04:19:10 -04:00
r18547@catbus: nickm | 2008-03-04 14:46:42 -0500
Fix compilation with --enable-gcc-warnings svn:r689
This commit is contained in:
parent
0c49e456f1
commit
6a92ec0b0f
@ -67,7 +67,7 @@ extern "C" {
|
||||
|
||||
@return the number of locks required by libevent
|
||||
*/
|
||||
int evthread_num_locks();
|
||||
int evthread_num_locks(void);
|
||||
|
||||
struct event_base;
|
||||
/**
|
||||
|
@ -42,6 +42,8 @@
|
||||
|
||||
static pthread_mutex_t *all_locks;
|
||||
|
||||
void regress_pthread(void);
|
||||
|
||||
struct cond_wait {
|
||||
pthread_mutex_t lock;
|
||||
pthread_cond_t cond;
|
||||
@ -146,7 +148,7 @@ get_id(void)
|
||||
}
|
||||
|
||||
void
|
||||
regress_pthread()
|
||||
regress_pthread(void)
|
||||
{
|
||||
struct event_base *base = event_base_new();
|
||||
int i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user