From a83aef476313a2cefdbdbd35d6e506498fd6b0c6 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 8 Oct 2017 09:22:00 -0600 Subject: [PATCH] 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(). --- libc/signal/sig_set.c | 4 ++-- libc/signal/signal.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libc/signal/sig_set.c b/libc/signal/sig_set.c index de0b27def3..f8fc3cf686 100644 --- a/libc/signal/sig_set.c +++ b/libc/signal/sig_set.c @@ -1,7 +1,7 @@ /**************************************************************************** * 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 * * 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; sigset_t set; diff --git a/libc/signal/signal.c b/libc/signal/signal.c index f9986bb6f3..5b98e7811a 100644 --- a/libc/signal/signal.c +++ b/libc/signal/signal.c @@ -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 oact;