summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/sys/time/gettimeofday.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/sys/time/gettimeofday.c')
-rw-r--r--testsuites/psxtests/psxhdrs/sys/time/gettimeofday.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/testsuites/psxtests/psxhdrs/sys/time/gettimeofday.c b/testsuites/psxtests/psxhdrs/sys/time/gettimeofday.c
index 60a56f3370..f27436c3f3 100644
--- a/testsuites/psxtests/psxhdrs/sys/time/gettimeofday.c
+++ b/testsuites/psxtests/psxhdrs/sys/time/gettimeofday.c
@@ -29,13 +29,10 @@ int test(void);
int test(void)
{
- int which,callback;
- struct itimerval timeval;
- it_interval interval = 0;
- it_value value = 0;
+ struct timeval tv;
+ struct timezone tz;
+ int callback;
- timeval.it_interval = interval;
- timeval.it_value = value;
- callback = gettimeofday(&timeval);
+ callback = gettimeofday(&tv, &tz);
return (callback == 0);
}