diff options
author | Roland McGrath <roland@hack.frob.com> | 2015-02-06 12:30:38 -0800 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2015-02-06 12:30:38 -0800 |
commit | f50ad78b919d7c6302e16d56f63c356abf5637b5 (patch) | |
tree | e29ed09b74bbe755b6d6081ca0c4e0d8380f242d | |
parent | 9e7265f4e58e563a1b0c9564f9eb5014ab333c37 (diff) | |
download | glibc-f50ad78b919d7c6302e16d56f63c356abf5637b5.zip glibc-f50ad78b919d7c6302e16d56f63c356abf5637b5.tar.gz glibc-f50ad78b919d7c6302e16d56f63c356abf5637b5.tar.bz2 |
Don't set unused field in rt/tst-timer2.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | rt/tst-timer2.c | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,8 @@ 2015-02-06 Roland McGrath <roland@hack.frob.com> + * rt/tst-timer2.c (do_test): Don't initialize SIGEV.sigev_signo, which + will not be used. Use NULL rather than 0 for .sigev_notify_attributes. + * nptl/tst-align2.c: Moved ... * sysdeps/unix/sysv/linux/tst-align-clone.c: ... here. * nptl/Makefile (tests): Remove tst-align2. diff --git a/rt/tst-timer2.c b/rt/tst-timer2.c index 60026c1..b2ce987 100644 --- a/rt/tst-timer2.c +++ b/rt/tst-timer2.c @@ -30,9 +30,8 @@ do_test (void) itval.it_value.tv_nsec = 0; sigev.sigev_notify = SIGEV_THREAD; - sigev.sigev_signo = SIGRTMIN; sigev.sigev_notify_function = thread; - sigev.sigev_notify_attributes = 0; + sigev.sigev_notify_attributes = NULL; sigev.sigev_value.sival_ptr = (void *) &timerId; for (i = 0; i < 100; i++) |