summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorrpj <rpj>1999-02-18 03:13:26 +0000
committerrpj <rpj>1999-02-18 03:13:26 +0000
commitf0f43f302a024980f80883f092a69165b8a7c643 (patch)
treee9abcafbeb451a471b2ccb5fbc33c78251472768 /misc.c
parentdbb2c8110de66bfa081140afce7f1d1323d2209e (diff)
Sat Feb 18 16:2s1703:30 1999 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* misc.c (pthread_equal): Fix inverted result.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/misc.c b/misc.c
index 1b558f4..025653c 100644
--- a/misc.c
+++ b/misc.c
@@ -172,19 +172,19 @@ pthread_equal (pthread_t t1, pthread_t t2)
*
*
* DESCRIPTION
- * This function returns zero if t1 and t2 are equal, else
- * returns nonzero.
+ * This function returns nonzero if t1 and t2 are equal, else
+ * returns zero.
*
* RESULTS
- * 0 if t1 and t2 refer to the same thread,
- * non-zero t1 and t2 do not refer to the same thread
+ * non-zero if t1 and t2 refer to the same thread,
+ * 0 t1 and t2 do not refer to the same thread
*
* ------------------------------------------------------
*/
{
int result;
- result = !((t1 == t2) || (t1->thread == t2->thread));
+ result = ((t1 == t2) && (t1->thread == t2->thread));
return (result);