aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1995-08-17 11:53:51 +0000
committerBruce Evans <bde@FreeBSD.org>1995-08-17 11:53:51 +0000
commitcf2455a3ecd70e7f3c9702414af166b9f71263b9 (patch)
tree13b18347601be8df22a169212dd8e4e199348ea2 /sys/fs
parentd0d1c65888e2a913c1a640d02692fb9b2edf897d (diff)
downloadsrc-cf2455a3ecd70e7f3c9702414af166b9f71263b9.tar.gz
src-cf2455a3ecd70e7f3c9702414af166b9f71263b9.zip
The `cred' and `proc' args were missing for some VOP_OPEN() and VOP_CLOSE()
calls. Found by: gcc -Wstrict-prototypes after I supplied some of the 5000+ missing prototypes. Now I have 9000+ lines of warnings and errors about bogus conversions of function pointers.
Notes
Notes: svn path=/head/; revision=10093
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/unionfs/union_subr.c4
-rw-r--r--sys/fs/unionfs/union_vnops.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/fs/unionfs/union_subr.c b/sys/fs/unionfs/union_subr.c
index cbbd17111bbc..7d51365b519c 100644
--- a/sys/fs/unionfs/union_subr.c
+++ b/sys/fs/unionfs/union_subr.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)union_subr.c 8.4 (Berkeley) 2/17/94
- * $Id: union_subr.c,v 1.5 1994/10/10 07:55:46 phk Exp $
+ * $Id: union_subr.c,v 1.6 1995/05/30 08:07:25 rgrimes Exp $
*/
#include <sys/param.h>
@@ -716,7 +716,7 @@ union_vn_close(vp, fmode, cred, p)
{
if (fmode & FWRITE)
--vp->v_writecount;
- return (VOP_CLOSE(vp, fmode));
+ return (VOP_CLOSE(vp, fmode, cred, p));
}
void
diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c
index 315fc629e9e8..855620c12e8d 100644
--- a/sys/fs/unionfs/union_vnops.c
+++ b/sys/fs/unionfs/union_vnops.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)union_vnops.c 8.6 (Berkeley) 2/17/94
- * $Id: union_vnops.c,v 1.9 1995/06/28 07:06:46 davidg Exp $
+ * $Id: union_vnops.c,v 1.10 1995/08/01 18:50:53 davidg Exp $
*/
#include <sys/param.h>
@@ -476,7 +476,7 @@ union_open(ap)
error = union_copyfile(p, cred,
tvp, un->un_uppervp);
VOP_UNLOCK(tvp);
- (void) VOP_CLOSE(tvp, FREAD);
+ (void) VOP_CLOSE(tvp, FREAD, cred, p);
} else {
VOP_UNLOCK(tvp);
}
@@ -503,7 +503,7 @@ union_open(ap)
* Ignoring error returns is not righ, either.
*/
for (i = 0; i < un->un_openl; i++) {
- (void) VOP_CLOSE(tvp, FREAD);
+ (void) VOP_CLOSE(tvp, FREAD, cred, p);
(void) VOP_OPEN(un->un_uppervp, FREAD, cred, p);
}
un->un_openl = 0;