diff options
author | mtm <mtm@FreeBSD.org> | 2003-05-23 09:48:20 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-05-23 09:48:20 +0000 |
commit | 6356a9c88e04455186a9b6d683ace14dadb891b7 (patch) | |
tree | a5c7ab227f8b7ea35430bf21cc7cafe1b6b756f3 /lib/libthr/thread/thr_init.c | |
parent | 7f8de979fc762dc4b610f5f1bc9b9845a9c638a2 (diff) | |
download | FreeBSD-src-6356a9c88e04455186a9b6d683ace14dadb891b7.zip FreeBSD-src-6356a9c88e04455186a9b6d683ace14dadb891b7.tar.gz |
Make WARNS2 clean. The fixes mostly included:
o removed unused variables
o explicit inclusion of header files
o prototypes for externally defined functions
Approved by: re/blanket libthr
Diffstat (limited to 'lib/libthr/thread/thr_init.c')
-rw-r--r-- | lib/libthr/thread/thr_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c index 64a1315..3b59da4 100644 --- a/lib/libthr/thread/thr_init.c +++ b/lib/libthr/thread/thr_init.c @@ -158,7 +158,6 @@ _thread_init(void) { struct pthread *pthread; int fd; - int flags; int i; size_t len; int mib[2]; @@ -328,7 +327,7 @@ _thread_init(void) /* Initialise the garbage collector mutex and condition variable. */ if (_pthread_mutex_init(&_gc_mutex,NULL) != 0 || - pthread_cond_init(&_gc_cond,NULL) != 0) + _pthread_cond_init(&_gc_cond,NULL) != 0) PANIC("Failed to initialise garbage collector mutex or condvar"); } |