Remove an unused variable when calling sigtimedwait()

This commit is contained in:
Masayuki Ishikawa 2017-03-02 13:40:43 +09:00
parent 050c2a3109
commit a05acc1abb

View File

@ -250,7 +250,6 @@ int gpio_main(int argc, char *argv[])
if (havesigno)
{
struct timespec ts;
struct siginfo info;
sigset_t set;
/* Set up to receive signal */
@ -273,7 +272,7 @@ int gpio_main(int argc, char *argv[])
ts.tv_sec = 5;
ts.tv_nsec = 0;
ret = sigtimedwait(&set, &info, &ts);
ret = sigtimedwait(&set, NULL, &ts);
(void)ioctl(fd, GPIOC_UNREGISTER, 0);
if (ret < 0)