summaryrefslogtreecommitdiff
path: root/apps/examples/ostest/sighand.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/ostest/sighand.c')
-rw-r--r--apps/examples/ostest/sighand.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/apps/examples/ostest/sighand.c b/apps/examples/ostest/sighand.c
index ab1c15c0e..4f42dcff1 100644
--- a/apps/examples/ostest/sighand.c
+++ b/apps/examples/ostest/sighand.c
@@ -204,7 +204,7 @@ static int waiter_main(int argc, char *argv[])
/* Detach the signal handler */
act.sa_sigaction = SIG_DFL;
- status = sigaction(WAKEUP_SIGNAL, &act, &oact);
+ (void)sigaction(WAKEUP_SIGNAL, &act, &oact);
printf("waiter_main: done\n" );
FFLUSH();
@@ -223,7 +223,6 @@ void sighand_test(void)
struct sched_param param;
union sigval sigvalue;
pid_t waiterpid;
- int policy;
int status;
printf("sighand_test: Initializing semaphore to 0\n" );
@@ -265,13 +264,6 @@ void sighand_test(void)
param.sched_priority = PTHREAD_DEFAULT_PRIORITY;
}
- policy = sched_getscheduler(0);
- if (policy == ERROR)
- {
- printf("sighand_test: ERROR sched_getscheduler() failed\n" );
- policy = SCHED_FIFO;
- }
-
waiterpid = task_create("waiter", param.sched_priority,
PTHREAD_STACK_DEFAULT, waiter_main, NULL);
if (waiterpid == ERROR)
@@ -326,7 +318,7 @@ void sighand_test(void)
#ifdef CONFIG_SCHED_HAVE_PARENT
act.sa_sigaction = SIG_DFL;
- status = sigaction(SIGCHLD, &act, &oact);
+ (void)sigaction(SIGCHLD, &act, &oact);
#endif
printf("sighand_test: done\n" );