From 4043239cfcacc88849881dd216af6da6db38331e Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Thu, 2 Mar 2017 12:57:44 +0900 Subject: [PATCH 1/2] Remove an unused variable when calling sigtimedwait() --- sched/signal/sig_nanosleep.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sched/signal/sig_nanosleep.c b/sched/signal/sig_nanosleep.c index 05f2c88af7..5b3a461b53 100644 --- a/sched/signal/sig_nanosleep.c +++ b/sched/signal/sig_nanosleep.c @@ -107,7 +107,6 @@ int nanosleep(FAR const struct timespec *rqtp, FAR struct timespec *rmtp) irqstate_t flags; systime_t starttick; sigset_t set; - struct siginfo value; int errval; #ifdef CONFIG_DEBUG_ASSERTIONS /* Warning avoidance */ int ret; @@ -141,9 +140,9 @@ int nanosleep(FAR const struct timespec *rqtp, FAR struct timespec *rmtp) /* nanosleep is a simple application of sigtimedwait. */ #ifdef CONFIG_DEBUG_ASSERTIONS /* Warning avoidance */ - ret = sigtimedwait(&set, &value, rqtp); + ret = sigtimedwait(&set, NULL, rqtp); #else - (void)sigtimedwait(&set, &value, rqtp); + (void)sigtimedwait(&set, NULL, rqtp); #endif /* sigtimedwait() cannot succeed. It should always return error with From 237e041fba053bc5a24efad038e69df053ac7edc Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Thu, 2 Mar 2017 12:58:54 +0900 Subject: [PATCH 2/2] Remove an unused variable when calling sigwaitinfo() --- sched/signal/sig_pause.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sched/signal/sig_pause.c b/sched/signal/sig_pause.c index 5a83f1a735..62b90c2935 100644 --- a/sched/signal/sig_pause.c +++ b/sched/signal/sig_pause.c @@ -74,7 +74,6 @@ int pause(void) { - struct siginfo value; sigset_t set; int ret; @@ -93,7 +92,7 @@ int pause(void) * meaning that some unblocked signal was caught. */ - ret = sigwaitinfo(&set, &value); + ret = sigwaitinfo(&set, NULL); leave_cancellation_point(); return ret; }