Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpthread cosmetics
details: https://anonhg.NetBSD.org/src/rev/46bc8c992ec6
branches: trunk
changeset: 542453:46bc8c992ec6
user: drochner <drochner%NetBSD.org@localhost>
date: Wed Jan 29 14:03:08 2003 +0000
description:
cosmetics
diffstat:
lib/libpthread/pthread.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 23c106b26a79 -r 46bc8c992ec6 lib/libpthread/pthread.c
--- a/lib/libpthread/pthread.c Wed Jan 29 13:14:33 2003 +0000
+++ b/lib/libpthread/pthread.c Wed Jan 29 14:03:08 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread.c,v 1.6 2003/01/25 00:37:01 nathanw Exp $ */
+/* $NetBSD: pthread.c,v 1.7 2003/01/29 14:03:08 drochner Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -235,7 +235,7 @@
if (attr == NULL)
nattr = pthread_default_attr;
- else if (((attr != NULL) && (attr->pta_magic == PT_ATTR_MAGIC)))
+ else if (attr->pta_magic == PT_ATTR_MAGIC)
nattr = *attr;
else
return EINVAL;
@@ -245,7 +245,7 @@
pthread_spinlock(self, &pthread__deadqueue_lock);
if (!PTQ_EMPTY(&pthread__deadqueue)) {
- newthread= PTQ_FIRST(&pthread__deadqueue);
+ newthread = PTQ_FIRST(&pthread__deadqueue);
PTQ_REMOVE(&pthread__deadqueue, newthread, pt_allq);
pthread_spinunlock(self, &pthread__deadqueue_lock);
} else {
Home |
Main Index |
Thread Index |
Old Index