From 2d445d163e3f5a80aa1fce86b5e69a93fdc4dd3f Mon Sep 17 00:00:00 2001 From: David Leonard Date: Thu, 6 Jan 2000 07:14:48 +0000 Subject: _SPINLOCK_INIT, unused vars --- lib/libpthread/uthread/uthread_cond.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lib/libpthread/uthread') diff --git a/lib/libpthread/uthread/uthread_cond.c b/lib/libpthread/uthread/uthread_cond.c index aed1adc7662..1991bb472c8 100644 --- a/lib/libpthread/uthread/uthread_cond.c +++ b/lib/libpthread/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 . * 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(); -- cgit v1.2.3