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().
This commit is contained in:
parent
9a1ad66fb5
commit
ea566832d7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285358
@ -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;
|
||||
|
@ -207,7 +207,7 @@ int kern_shmat(struct thread *td, int shmid, const void *shmaddr,
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user