diff --git a/examples/gpio/gpio_main.c b/examples/gpio/gpio_main.c index ba3ac515f..9332af985 100644 --- a/examples/gpio/gpio_main.c +++ b/examples/gpio/gpio_main.c @@ -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)