diff options
author | David Leonard <d@cvs.openbsd.org> | 2000-01-06 07:14:48 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 2000-01-06 07:14:48 +0000 |
commit | 2d445d163e3f5a80aa1fce86b5e69a93fdc4dd3f (patch) | |
tree | ee553e41232a238c7f9d77278be342b7128a7d26 /lib/libc_r/uthread | |
parent | d10a36412255090ef64c0cebd3c1049fc39a4dd2 (diff) |
_SPINLOCK_INIT, unused vars
Diffstat (limited to 'lib/libc_r/uthread')
-rw-r--r-- | lib/libc_r/uthread/uthread_cond.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc_r/uthread/uthread_cond.c b/lib/libc_r/uthread/uthread_cond.c index aed1adc7662..1991bb472c8 100644 --- a/lib/libc_r/uthread/uthread_cond.c +++ b/lib/libc_r/uthread/uthread_cond.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_cond.c,v 1.8 1999/11/25 07:01:33 d Exp $ */ +/* $OpenBSD: uthread_cond.c,v 1.9 2000/01/06 07:14:47 d Exp $ */ /* * Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>. * All rights reserved. @@ -64,7 +64,7 @@ _cond_reinit(pthread_cond_t * cond) (*cond)->c_flags = COND_FLAGS_INITED; (*cond)->c_type = COND_TYPE_FAST; (*cond)->c_mutex = NULL; - memset(&(*cond)->lock, 0, sizeof((*cond)->lock)); + _SPINLOCK_INIT(&(*cond)->lock); } return (ret); } @@ -159,7 +159,6 @@ int pthread_cond_wait(pthread_cond_t * cond, pthread_mutex_t * mutex) { int rval = 0; - int status; /* This is a cancellation point: */ _thread_enter_cancellation_point(); @@ -266,7 +265,6 @@ pthread_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, const struct timespec * abstime) { int rval = 0; - int status; /* This is a cancellation point: */ _thread_enter_cancellation_point(); |