diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2018-11-02 20:50:22 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2018-11-02 20:50:22 +0000 |
commit | 12e69f96a2a352f64e7854efcc4152c4c990f045 (patch) | |
tree | 1f61caec2fd641770a16f14038759236f20e8696 /sys/dev/filemon | |
parent | 09f4e462fb1d9401834dbd2a0176973aa5a9491e (diff) | |
download | src-12e69f96a2a352f64e7854efcc4152c4c990f045.tar.gz src-12e69f96a2a352f64e7854efcc4152c4c990f045.zip |
Add const to input-only char * arguments.
These arguments are mostly paths handled by NAMEI*() macros which already
take const char * arguments.
This change improves the match between syscalls.master and the public
declerations of system calls.
Reviewed by: kib (prior version)
Obtained from: CheriBSD
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D17812
Notes
Notes:
svn path=/head/; revision=340080
Diffstat (limited to 'sys/dev/filemon')
-rw-r--r-- | sys/dev/filemon/filemon_wrapper.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/filemon/filemon_wrapper.c b/sys/dev/filemon/filemon_wrapper.c index 54150777ed9f..cd4f7b2932e7 100644 --- a/sys/dev/filemon/filemon_wrapper.c +++ b/sys/dev/filemon/filemon_wrapper.c @@ -149,7 +149,8 @@ filemon_event_process_exec(void *arg __unused, struct proc *p, } static void -_filemon_wrapper_openat(struct thread *td, char *upath, int flags, int fd) +_filemon_wrapper_openat(struct thread *td, const char *upath, int flags, + int fd) { int error; struct file *fp; @@ -262,7 +263,8 @@ copyfail: } static void -_filemon_wrapper_link(struct thread *td, char *upath1, char *upath2) +_filemon_wrapper_link(struct thread *td, const char *upath1, + const char *upath2) { struct filemon *filemon; int error; |