diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2018-12-11 19:32:16 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2018-12-11 19:32:16 +0000 |
commit | cc426dd31990b8b50b210efc450e404596548ca1 (patch) | |
tree | 4c797c5d8886d8d05bb5346b747005b539105825 /sys/dev/filemon | |
parent | 959530cc41aea5f878c2c2cea5b545d295108bab (diff) | |
download | src-cc426dd31990b8b50b210efc450e404596548ca1.tar.gz src-cc426dd31990b8b50b210efc450e404596548ca1.zip |
Remove unused argument to priv_check_cred.
Patch mostly generated with cocinnelle:
@@
expression E1,E2;
@@
- priv_check_cred(E1,E2,0)
+ priv_check_cred(E1,E2)
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=341827
Diffstat (limited to 'sys/dev/filemon')
-rw-r--r-- | sys/dev/filemon/filemon_wrapper.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/filemon/filemon_wrapper.c b/sys/dev/filemon/filemon_wrapper.c index cd4f7b2932e7..8f76de68eba9 100644 --- a/sys/dev/filemon/filemon_wrapper.c +++ b/sys/dev/filemon/filemon_wrapper.c @@ -129,8 +129,7 @@ filemon_event_process_exec(void *arg __unused, struct proc *p, /* If the credentials changed then cease tracing. */ if (imgp->newcred != NULL && imgp->credential_setid && - priv_check_cred(filemon->cred, - PRIV_DEBUG_DIFFCRED, 0) != 0) { + priv_check_cred(filemon->cred, PRIV_DEBUG_DIFFCRED) != 0) { /* * It may have changed to NULL already, but * will not be re-attached by anything else. |