From b49b12158f27e4b5a920bfa10367669e4fb00aea Mon Sep 17 00:00:00 2001 From: Mike Pritchard Date: Mon, 10 Feb 1997 16:34:16 +0000 Subject: Make this compile again after the Lite2 merge. VOP_UNLOCK was being called with the wrong mumber of arguments. Also silenced a -Wall warning. --- sys/compat/linux/linux_file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/compat/linux/linux_file.c') diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index 9fe4d40a1633..addfbefe46e9 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; } -- cgit v1.2.3