From fff0f057805582731b159f9a5aa58c84fe3b323e Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 7 Sep 1998 21:07:59 +0000 Subject: [PATCH] Removed some variable initializations which were unnecessary and divergent from style(9). --- lib/libc_r/uthread/uthread_rwlock.c | 12 ++++++------ lib/libkse/thread/thr_rwlock.c | 12 ++++++------ lib/libpthread/thread/thr_rwlock.c | 12 ++++++------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/libc_r/uthread/uthread_rwlock.c b/lib/libc_r/uthread/uthread_rwlock.c index ce91edf60e10..f398a1857d4a 100644 --- a/lib/libc_r/uthread/uthread_rwlock.c +++ b/lib/libc_r/uthread/uthread_rwlock.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: uthread_rwlock.c,v 1.1 1998/09/07 19:01:43 alex Exp $ + * $Id: uthread_rwlock.c,v 1.2 1998/09/07 19:23:55 alex Exp $ */ #ifdef _THREAD_SAFE @@ -130,7 +130,7 @@ int pthread_rwlock_rdlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL); @@ -181,7 +181,7 @@ int pthread_rwlock_tryrdlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL); @@ -218,7 +218,7 @@ int pthread_rwlock_trywrlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL); @@ -253,7 +253,7 @@ int pthread_rwlock_unlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL); @@ -290,7 +290,7 @@ int pthread_rwlock_wrlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL); diff --git a/lib/libkse/thread/thr_rwlock.c b/lib/libkse/thread/thr_rwlock.c index ce91edf60e10..f398a1857d4a 100644 --- a/lib/libkse/thread/thr_rwlock.c +++ b/lib/libkse/thread/thr_rwlock.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: uthread_rwlock.c,v 1.1 1998/09/07 19:01:43 alex Exp $ + * $Id: uthread_rwlock.c,v 1.2 1998/09/07 19:23:55 alex Exp $ */ #ifdef _THREAD_SAFE @@ -130,7 +130,7 @@ int pthread_rwlock_rdlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL); @@ -181,7 +181,7 @@ int pthread_rwlock_tryrdlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL); @@ -218,7 +218,7 @@ int pthread_rwlock_trywrlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL); @@ -253,7 +253,7 @@ int pthread_rwlock_unlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL); @@ -290,7 +290,7 @@ int pthread_rwlock_wrlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL); diff --git a/lib/libpthread/thread/thr_rwlock.c b/lib/libpthread/thread/thr_rwlock.c index ce91edf60e10..f398a1857d4a 100644 --- a/lib/libpthread/thread/thr_rwlock.c +++ b/lib/libpthread/thread/thr_rwlock.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: uthread_rwlock.c,v 1.1 1998/09/07 19:01:43 alex Exp $ + * $Id: uthread_rwlock.c,v 1.2 1998/09/07 19:23:55 alex Exp $ */ #ifdef _THREAD_SAFE @@ -130,7 +130,7 @@ int pthread_rwlock_rdlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL); @@ -181,7 +181,7 @@ int pthread_rwlock_tryrdlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL); @@ -218,7 +218,7 @@ int pthread_rwlock_trywrlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL); @@ -253,7 +253,7 @@ int pthread_rwlock_unlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL); @@ -290,7 +290,7 @@ int pthread_rwlock_wrlock (pthread_rwlock_t *rwlock) { pthread_rwlock_t prwlock; - int ret = 0; + int ret; if (rwlock == NULL) return(EINVAL);