diff --git a/examples/ostest/posixtimer.c b/examples/ostest/posixtimer.c index 355cb8ec6..82eae67d9 100644 --- a/examples/ostest/posixtimer.c +++ b/examples/ostest/posixtimer.c @@ -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 * * 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" ); diff --git a/examples/ostest/sighand.c b/examples/ostest/sighand.c index 138c54e73..0064c30aa 100644 --- a/examples/ostest/sighand.c +++ b/examples/ostest/sighand.c @@ -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 * * 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