diff options
author | rpj <rpj> | 2011-03-04 08:03:46 +0000 |
---|---|---|
committer | rpj <rpj> | 2011-03-04 08:03:46 +0000 |
commit | e1de8e3c33257b4e7d6b98767a67414efc31b6c7 (patch) | |
tree | 1942d5037d1cf5077c62f2dce89cf60cd9f96399 /tests/rwlock6_t.c | |
parent | e470da85f7b9426eea03d66086c2822bf29e9b05 (diff) |
Casting fixups
Diffstat (limited to 'tests/rwlock6_t.c')
-rw-r--r-- | tests/rwlock6_t.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/rwlock6_t.c b/tests/rwlock6_t.c index 37a332a..f8a05f1 100644 --- a/tests/rwlock6_t.c +++ b/tests/rwlock6_t.c @@ -67,17 +67,17 @@ void * rdfunc(void * arg) PTW32_FTIME(&currSysTime); - abstime.tv_sec = currSysTime.time; + abstime.tv_sec = (long)currSysTime.time; abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; - if ((int) arg == 1) + if ((int) (size_t)arg == 1) { abstime.tv_sec += 1; assert(pthread_rwlock_timedrdlock(&rwlock1, &abstime) == ETIMEDOUT); ba = 0; } - else if ((int) arg == 2) + else if ((int) (size_t)arg == 2) { abstime.tv_sec += 3; assert(pthread_rwlock_timedrdlock(&rwlock1, &abstime) == 0); @@ -110,10 +110,10 @@ main() Sleep(500); assert(pthread_create(&rdt2, NULL, rdfunc, (void *) 2) == 0); - assert(pthread_join(wrt1, (void **) &wr1Result) == 0); - assert(pthread_join(rdt1, (void **) &rd1Result) == 0); - assert(pthread_join(wrt2, (void **) &wr2Result) == 0); - assert(pthread_join(rdt2, (void **) &rd2Result) == 0); + assert(pthread_join(wrt1, (void *) &wr1Result) == 0); + assert(pthread_join(rdt1, (void *) &rd1Result) == 0); + assert(pthread_join(wrt2, (void *) &wr2Result) == 0); + assert(pthread_join(rdt2, (void *) &rd2Result) == 0); assert(wr1Result == 10); assert(rd1Result == 0); |