apps/examples/ostest: SIG_DFL is no long assignment compatible with the sa_sigaction functin pointer.

This commit is contained in:
Gregory Nutt 2016-06-08 18:02:37 -06:00
parent b5891c8b1a
commit 0dfe0baf2b
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
/****************************************************************************
* examples/ostest/posixtimer.c
*
* Copyright (C) 2007-2009, 2011 Gregory Nutt. All rights reserved.
* Copyright (C) 2007-2009, 2011, 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@ -258,7 +258,7 @@ errorout:
/* Detach the signal handler */
act.sa_sigaction = SIG_DFL;
act.sa_handler = SIG_DFL;
status = sigaction(MY_TIMER_SIGNAL, &act, &oact);
printf("timer_test: done\n" );

View File

@ -1,7 +1,7 @@
/****************************************************************************
* apps/examples/ostest/sighand.c
*
* Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved.
* Copyright (C) 2007, 2008, 2011, 2016 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@ -213,7 +213,7 @@ static int waiter_main(int argc, char *argv[])
/* Detach the signal handler */
act.sa_sigaction = SIG_DFL;
act.sa_handler = SIG_DFL;
(void)sigaction(WAKEUP_SIGNAL, &act, &oact);
printf("waiter_main: done\n" );
@ -331,7 +331,7 @@ void sighand_test(void)
/* Detach the signal handler */
#ifdef CONFIG_SCHED_HAVE_PARENT
act.sa_sigaction = SIG_DFL;
act.sa_handler = SIG_DFL;
(void)sigaction(SIGCHLD, &act, &oact);
#endif