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:
Gregory Nutt 2017-10-08 09:22:00 -06:00
parent f6f740a511
commit a83aef4763
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;