diff options
author | Joel Sherrill <joel@rtems.org> | 2018-12-04 16:55:53 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2018-12-04 16:56:01 -0600 |
commit | 55719bab1391a80fbceceac474f66ac69eb87c65 (patch) | |
tree | 7d49e2a72014d013bc78d8cd0dfd4db033629c71 /testsuites/psxtests/psxhdrs/sys/time/setitimer.c | |
parent | psxhdrs: POSIX API Signature Compliance Tests for ulimit.h (GCI 2018) (diff) | |
download | rtems-55719bab1391a80fbceceac474f66ac69eb87c65.tar.bz2 |
psxhdrs: Fix warnings
Diffstat (limited to '')
-rw-r--r-- | testsuites/psxtests/psxhdrs/sys/time/setitimer.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/testsuites/psxtests/psxhdrs/sys/time/setitimer.c b/testsuites/psxtests/psxhdrs/sys/time/setitimer.c index 32fb4da7ee..fc7588db44 100644 --- a/testsuites/psxtests/psxhdrs/sys/time/setitimer.c +++ b/testsuites/psxtests/psxhdrs/sys/time/setitimer.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; + int which = ITIMER_REAL; + int callback; + struct itimerval timeval = { {0,0}, {0,0} }; - timeval.it_interval = interval; - timeval.it_value = value; setitimer(which, &timeval, NULL); callback = getitimer(which, &timeval); return (callback == 0); |