summaryrefslogtreecommitdiff
path: root/tests/rwlock6.c
diff options
context:
space:
mode:
authorrpj <rpj>2011-03-05 07:21:12 +0000
committerrpj <rpj>2011-03-05 07:21:12 +0000
commit85dfeaf6133e1b74eefed26cf76c3f8631c7dd1d (patch)
tree92e0f60e66f36f1ea1ca9cec4617d7f187698ecf /tests/rwlock6.c
parent275d03d3af64e4f5e1769584214f6fccc303456e (diff)
Rework pthread_join result arg casting
Diffstat (limited to 'tests/rwlock6.c')
-rw-r--r--tests/rwlock6.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/rwlock6.c b/tests/rwlock6.c
index 9679d46..3f305e8 100644
--- a/tests/rwlock6.c
+++ b/tests/rwlock6.c
@@ -77,9 +77,9 @@ main()
pthread_t wrt1;
pthread_t wrt2;
pthread_t rdt;
- int wr1Result = 0;
- int wr2Result = 0;
- int rdResult = 0;
+ void* wr1Result = (void*)0;
+ void* wr2Result = (void*)0;
+ void* rdResult = (void*)0;
bankAccount = 0;
@@ -93,9 +93,9 @@ main()
assert(pthread_join(rdt, (void *) &rdResult) == 0);
assert(pthread_join(wrt2, (void *) &wr2Result) == 0);
- assert(wr1Result == 10);
- assert(rdResult == 10);
- assert(wr2Result == 20);
+ assert((int)(size_t)wr1Result == 10);
+ assert((int)(size_t)rdResult == 10);
+ assert((int)(size_t)wr2Result == 20);
return 0;
}