svn commit: r285358 - in head/sys: kern sys
Ed Schouten
ed at FreeBSD.org
Fri Jul 10 14:39:48 UTC 2015
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,
More information about the svn-src-all
mailing list