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/condvar3_2.c | |
| parent | e470da85f7b9426eea03d66086c2822bf29e9b05 (diff) | |
Casting fixups
Diffstat (limited to 'tests/condvar3_2.c')
| -rw-r--r-- | tests/condvar3_2.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/tests/condvar3_2.c b/tests/condvar3_2.c index 33d800c..0abe38a 100644 --- a/tests/condvar3_2.c +++ b/tests/condvar3_2.c @@ -100,7 +100,7 @@ mythread(void * arg)    abstime2.tv_sec = abstime.tv_sec; -  if ((int) arg % 3 == 0) +  if ((int) (size_t)arg % 3 == 0)      {        abstime2.tv_sec += 2;      } @@ -138,7 +138,7 @@ main()    /* get current system time */    PTW32_FTIME(&currSysTime); -  abstime.tv_sec = abstime2.tv_sec = currSysTime.time + 5; +  abstime.tv_sec = abstime2.tv_sec = (long)currSysTime.time + 5;    abstime.tv_nsec = abstime2.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm;    assert(pthread_mutex_lock(&mutex) == 0); @@ -152,7 +152,7 @@ main()    for (i = 1; i <= NUMTHREADS; i++)      { -      assert(pthread_join(t[i], (void **) &result) == 0); +      assert(pthread_join(t[i], (void *) &result) == 0);  	assert(result == i);        /*         * Approximately 2/3rds of the threads are expected to time out. | 
