From 60160a5ee2592682d94eb0e0fd517be1a700debb Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 26 Apr 2024 23:20:31 -0500 Subject: [PATCH] Update: Add "const" to the pointer in some signal functions. These are passed directly to the signal functions that do not have "const" qualifier. This needs extensive testing. --- level_0/f_signal/c/signal.c | 4 ++-- level_0/f_signal/c/signal.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/level_0/f_signal/c/signal.c b/level_0/f_signal/c/signal.c index dbd5adc..fa1e4c8 100644 --- a/level_0/f_signal/c/signal.c +++ b/level_0/f_signal/c/signal.c @@ -5,7 +5,7 @@ extern "C" { #endif #ifndef _di_f_signal_action_ - f_status_t f_signal_action(const f_signal_t signal, const struct sigaction * const action, struct sigaction *previous) { + f_status_t f_signal_action(const f_signal_t signal, const struct sigaction * const action, struct sigaction * const previous) { #ifndef _di_level_0_parameter_checking_ if (!action && !previous) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -292,7 +292,7 @@ extern "C" { #endif // _di_f_signal_wait_ #ifndef _di_f_signal_wait_until_ - f_status_t f_signal_wait_until(const sigset_t * const set, const f_time_spec_t *timeout, siginfo_t * const information) { + f_status_t f_signal_wait_until(const sigset_t * const set, const f_time_spec_t * const timeout, siginfo_t * const information) { if (sigtimedwait(set, information, timeout) == -1) { if (errno == EAGAIN) return F_time_out; diff --git a/level_0/f_signal/c/signal.h b/level_0/f_signal/c/signal.h index abac46a..45c1f8e 100644 --- a/level_0/f_signal/c/signal.h +++ b/level_0/f_signal/c/signal.h @@ -53,7 +53,7 @@ extern "C" { * @see sigaction() */ #ifndef _di_f_signal_action_ - extern f_status_t f_signal_action(const f_signal_t signal, const struct sigaction * const action, struct sigaction *previous); + extern f_status_t f_signal_action(const f_signal_t signal, const struct sigaction * const action, struct sigaction * const previous); #endif // _di_f_signal_action_ /** @@ -407,7 +407,7 @@ extern "C" { * @see sigtimedwait() */ #ifndef _di_f_signal_wait_until_ - extern f_status_t f_signal_wait_until(const sigset_t * const set, const f_time_spec_t *timeout, siginfo_t * const information); + extern f_status_t f_signal_wait_until(const sigset_t * const set, const f_time_spec_t * const timeout, siginfo_t * const information); #endif // _di_f_signal_wait_until_ #ifdef __cplusplus -- 1.8.3.1