r18547@catbus: nickm | 2008-03-04 14:46:42 -0500

Fix compilation with --enable-gcc-warnings


svn:r689
This commit is contained in:
Nick Mathewson 2008-03-04 19:47:01 +00:00
parent 0c49e456f1
commit 6a92ec0b0f
2 changed files with 4 additions and 2 deletions

View File

@ -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;
/**

View File

@ -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;