Fix some problems in the previous commits: Forgot to update sigset() after change to prototype. Also there was a stray semicolon in the change signal().
This commit is contained in:
parent
f6f740a511
commit
a83aef4763
|
@ -1,7 +1,7 @@
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* libc/signal/sig_set.c
|
* libc/signal/sig_set.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015-2016 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2015-2017 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
CODE void (*sigset(int signo, CODE void (*func)(int signo)))(int signo)
|
_sa_handler_t sigset(int signo, _sa_handler_t func)
|
||||||
{
|
{
|
||||||
_sa_handler_t disposition;
|
_sa_handler_t disposition;
|
||||||
sigset_t set;
|
sigset_t set;
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
_sa_sighandler_t signal(int signo, _sa_handler_t func);
|
_sa_handler_t signal(int signo, _sa_handler_t func)
|
||||||
{
|
{
|
||||||
struct sigaction act;
|
struct sigaction act;
|
||||||
struct sigaction oact;
|
struct sigaction oact;
|
||||||
|
|
Loading…
Reference in New Issue