diff options
author | phk <phk@FreeBSD.org> | 2000-03-13 10:47:24 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-03-13 10:47:24 +0000 |
commit | bb6e8e0c2e2f06cfae307c034ed95e9de357cbf6 (patch) | |
tree | 4e25b953815e324e4bf203791602f7bd097a647b /sys/kern/kern_sysctl.c | |
parent | 8e89e2d03f02f781ce162589fb0704e91d884725 (diff) | |
download | FreeBSD-src-bb6e8e0c2e2f06cfae307c034ed95e9de357cbf6.zip FreeBSD-src-bb6e8e0c2e2f06cfae307c034ed95e9de357cbf6.tar.gz |
Remove unused 3rd argument from vsunlock() which abused B_WRITE.
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r-- | sys/kern/kern_sysctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index a1fab08..c84737d 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -628,7 +628,7 @@ kernel_sysctl(struct proc *p, int *name, u_int namelen, void *old, size_t *oldle error = sysctl_root(0, name, namelen, &req); if (req.lock == 2) - vsunlock(req.oldptr, req.oldlen, B_WRITE); + vsunlock(req.oldptr, req.oldlen); memlock.sl_lock = 0; @@ -873,7 +873,7 @@ userland_sysctl(struct proc *p, int *name, u_int namelen, void *old, size_t *old req = req2; if (req.lock == 2) - vsunlock(req.oldptr, req.oldlen, B_WRITE); + vsunlock(req.oldptr, req.oldlen); memlock.sl_lock = 0; |