diff options
author | mpp <mpp@FreeBSD.org> | 1997-02-10 16:34:16 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 1997-02-10 16:34:16 +0000 |
commit | 7a838f1dcf524f73d23d0f3b05e07e8b020a5f2b (patch) | |
tree | 83c482ded6f37510de41d33658da99887a81a075 /sys/compat/linux | |
parent | 48a2c5729d1f00256a412383870ff7a81b8db8a5 (diff) | |
download | FreeBSD-src-7a838f1dcf524f73d23d0f3b05e07e8b020a5f2b.zip FreeBSD-src-7a838f1dcf524f73d23d0f3b05e07e8b020a5f2b.tar.gz |
Make this compile again after the Lite2 merge.
VOP_UNLOCK was being called with the wrong mumber of arguments.
Also silenced a -Wall warning.
Diffstat (limited to 'sys/compat/linux')
-rw-r--r-- | sys/compat/linux/linux_file.c | 5 | ||||
-rw-r--r-- | sys/compat/linux/linux_misc.c | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 9fe4d40..addfbef 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -462,8 +462,7 @@ again: auio.uio_resid = buflen; auio.uio_offset = off - (off_t)blockoff; - error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, (int *) NULL, - (u_int **) NULL); + error = VOP_READDIR(vp, &auio, fp->f_cred, &eofflag, NULL, NULL); if (error) { goto out; } @@ -530,7 +529,7 @@ again: eof: *retval = nbytes - resid; out: - VOP_UNLOCK(vp, p); + VOP_UNLOCK(vp, 0, p); free(buf, M_TEMP); return error; } diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index d0332cf..7e99f02 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -237,7 +237,7 @@ linux_uselib(struct proc *p, struct linux_uselib_args *args, int *retval) /* * Lock no longer needed */ - VOP_UNLOCK(vp, p); + VOP_UNLOCK(vp, 0, p); locked = 0; /* @@ -392,7 +392,7 @@ cleanup: * Unlock vnode if needed */ if (locked) - VOP_UNLOCK(vp, p); + VOP_UNLOCK(vp, 0, p); /* * Release the kernel mapping. |