aboutsummaryrefslogtreecommitdiff
path: root/nptl/tst-cond-except.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/tst-cond-except.c')
-rw-r--r--nptl/tst-cond-except.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nptl/tst-cond-except.c b/nptl/tst-cond-except.c
index b9871ba..be9c4ef 100644
--- a/nptl/tst-cond-except.c
+++ b/nptl/tst-cond-except.c
@@ -18,6 +18,7 @@
#include <pthread.h>
#include <stdio.h>
+#include <stdint.h>
#include <string.h>
#include <unistd.h>
@@ -72,11 +73,11 @@ thr (void *arg)
pthread_cleanup_pop (1);
out:
- return (void *)ret;
+ return (void *) (uintptr_t) ret;
}
int
-do_test ()
+do_test (void)
{
pthread_t thread;
int ret = 0;