From a05acc1abbde8f9c86ea5c03d9e60d8efe5f6920 Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Thu, 2 Mar 2017 13:40:43 +0900 Subject: [PATCH] Remove an unused variable when calling sigtimedwait() --- examples/gpio/gpio_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)