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;