summaryrefslogtreecommitdiff
path: root/libthreads
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-08 09:37:07 +0000
committerRoland McGrath <roland@gnu.org>2002-05-08 09:37:07 +0000
commita92c3bfe8ab62b99a771c7eb278c9ba45df8d0ed (patch)
treebb8f6ccf153a122e10c54df6ff593651144062b4 /libthreads
parent4dbcb1004d011d7aa2fd474400aa503a74eacb02 (diff)
2002-05-08 Roland McGrath <roland@frob.com>
* cthreads.c (cthread_exit): Cast any_t to long before int.
Diffstat (limited to 'libthreads')
-rw-r--r--libthreads/cthreads.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/libthreads/cthreads.c b/libthreads/cthreads.c
index cb8f76ed..12126f20 100644
--- a/libthreads/cthreads.c
+++ b/libthreads/cthreads.c
@@ -26,6 +26,17 @@
/*
* HISTORY
* $Log: cthreads.c,v $
+ * Revision 1.10 2001/03/31 23:01:01 roland
+ * 2001-03-31 Roland McGrath <roland@frob.com>
+ *
+ * * cthreads.h: Fix obsolescent #endif syntax.
+ * * cthread_internals.h: Likewise.
+ * * cancel-cond.c: Likewise.
+ * * stack.c: Likewise.
+ * * cthreads.c: Likewise.
+ * * cprocs.c: Likewise.
+ * * call.c: Likewise.
+ *
* Revision 1.9 1998/11/22 18:18:10 roland
* 1998-11-12 Mark Kettenis <kettenis@phys.uva.nl>
*
@@ -386,7 +397,7 @@ cthread_exit(result)
while (cthread_cthreads > 1)
condition_wait(&cthread_idle, &cthread_lock);
mutex_unlock(&cthread_lock);
- exit((int) result);
+ exit((int)(long)result);
} else {
_longjmp(t->catch, TRUE);
}