r18547@catbus: nickm | 2008-03-04 14:46:42 -0500
authorNick Mathewson <nickm@torproject.org>
Tue, 4 Mar 2008 19:47:01 +0000 (19:47 +0000)
committerNick Mathewson <nickm@torproject.org>
Tue, 4 Mar 2008 19:47:01 +0000 (19:47 +0000)
 Fix compilation with --enable-gcc-warnings

svn:r689

include/event2/thread.h
test/regress_pthread.c

index f49dd27a11c4f5b3d4d1d104ee315ac0ce79b7db..9802e0ae932936fa44b4007f716fd187a51208d6 100644 (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;
 /**
index 52d7e10046ece51da2a6bc9e9ad1a7ff9afe6974..cda86997d3bc30600905ea30a219f10443675280 100644 (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;