Remove an unused variable when calling sigtimedwait()
This commit is contained in:
parent
050c2a3109
commit
a05acc1abb
@ -250,7 +250,6 @@ int gpio_main(int argc, char *argv[])
|
|||||||
if (havesigno)
|
if (havesigno)
|
||||||
{
|
{
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
struct siginfo info;
|
|
||||||
sigset_t set;
|
sigset_t set;
|
||||||
|
|
||||||
/* Set up to receive signal */
|
/* Set up to receive signal */
|
||||||
@ -273,7 +272,7 @@ int gpio_main(int argc, char *argv[])
|
|||||||
ts.tv_sec = 5;
|
ts.tv_sec = 5;
|
||||||
ts.tv_nsec = 0;
|
ts.tv_nsec = 0;
|
||||||
|
|
||||||
ret = sigtimedwait(&set, &info, &ts);
|
ret = sigtimedwait(&set, NULL, &ts);
|
||||||
(void)ioctl(fd, GPIOC_UNREGISTER, 0);
|
(void)ioctl(fd, GPIOC_UNREGISTER, 0);
|
||||||
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user