Date: Fri, 10 Jul 2015 14:39:47 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285358 - in head/sys: kern sys Message-ID: <201507101439.t6AEdlTH007009@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Fri Jul 10 14:39:46 2015 New Revision: 285358 URL: https://svnweb.freebsd.org/changeset/base/285358 Log: 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(). Modified: head/sys/kern/kern_sig.c head/sys/sys/syscallsubr.h Modified: head/sys/kern/kern_sig.c ============================================================================== --- head/sys/kern/kern_sig.c Fri Jul 10 13:54:03 2015 (r285357) +++ head/sys/kern/kern_sig.c Fri Jul 10 14:39:46 2015 (r285358) @@ -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, * 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; Modified: head/sys/sys/syscallsubr.h ============================================================================== --- head/sys/sys/syscallsubr.h Fri Jul 10 13:54:03 2015 (r285357) +++ head/sys/sys/syscallsubr.h Fri Jul 10 14:39:46 2015 (r285358) @@ -207,7 +207,7 @@ int kern_shmat(struct thread *td, int sh int shmflg); int kern_shmctl(struct thread *td, int shmid, int cmd, void *buf, size_t *bufsz); -int kern_sigaction(struct thread *td, int sig, struct sigaction *act, +int kern_sigaction(struct thread *td, int sig, const struct sigaction *act, struct sigaction *oact, int flags); int kern_sigaltstack(struct thread *td, stack_t *ss, stack_t *oss); int kern_sigprocmask(struct thread *td, int how,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507101439.t6AEdlTH007009>