diff options
author | Ed Schouten <ed@FreeBSD.org> | 2015-07-10 14:39:46 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2015-07-10 14:39:46 +0000 |
commit | ea566832d78e0c81f7be7587ada8055876394558 (patch) | |
tree | 2486d969e91d30685580bc35f4112be45b309d38 /sys/kern/kern_sig.c | |
parent | 9a1ad66fb53444e2cd683e76358ade3cf286394d (diff) | |
download | src-ea566832d78e0c81f7be7587ada8055876394558.tar.gz src-ea566832d78e0c81f7be7587ada8055876394558.zip |
Add missing const keyword to kern_sigaction()'s 'act' parameter.
This structure is not modified by the function. Also add const to
sigact_flag_test(), as it is called by kern_sigaction().
Notes
Notes:
svn path=/head/; revision=285358
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r-- | sys/kern/kern_sig.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index b70da5bd98a2..7f31c92f70c7 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -628,7 +628,7 @@ sig_ffs(sigset_t *set) } static bool -sigact_flag_test(struct sigaction *act, int flag) +sigact_flag_test(const struct sigaction *act, int flag) { /* @@ -648,11 +648,8 @@ sigact_flag_test(struct sigaction *act, int flag) * osigaction */ int -kern_sigaction(td, sig, act, oact, flags) - struct thread *td; - register int sig; - struct sigaction *act, *oact; - int flags; +kern_sigaction(struct thread *td, int sig, const struct sigaction *act, + struct sigaction *oact, int flags) { struct sigacts *ps; struct proc *p = td->td_proc; |