diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/nwfs/nwfs_io.c | 4 | ||||
-rw-r--r-- | sys/fs/smbfs/smbfs_io.c | 4 | ||||
-rw-r--r-- | sys/gnu/fs/reiserfs/reiserfs_vfsops.c | 2 | ||||
-rw-r--r-- | sys/kern/kern_alq.c | 2 | ||||
-rw-r--r-- | sys/security/audit/audit_syscalls.c | 2 | ||||
-rw-r--r-- | sys/ufs/ufs/ufs_extattr.c | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/sys/fs/nwfs/nwfs_io.c b/sys/fs/nwfs/nwfs_io.c index 3071fe1..c7c4473 100644 --- a/sys/fs/nwfs/nwfs_io.c +++ b/sys/fs/nwfs/nwfs_io.c @@ -524,7 +524,7 @@ nwfs_putpages(ap) #ifndef NWFS_RWCACHE td = curthread; /* XXX */ cred = td->td_ucred; /* XXX */ - VOP_OPEN(vp, FWRITE, cred, td, -1); + VOP_OPEN(vp, FWRITE, cred, td, NULL); error = vop_stdputpages(ap); VOP_CLOSE(vp, FWRITE, cred, td); return error; @@ -541,7 +541,7 @@ nwfs_putpages(ap) td = curthread; /* XXX */ cred = td->td_ucred; /* XXX */ -/* VOP_OPEN(vp, FWRITE, cred, td, -1);*/ +/* VOP_OPEN(vp, FWRITE, cred, td, NULL);*/ np = VTONW(vp); nmp = VFSTONWFS(vp->v_mount); pages = ap->a_m; diff --git a/sys/fs/smbfs/smbfs_io.c b/sys/fs/smbfs/smbfs_io.c index 0f8ed49..082f545 100644 --- a/sys/fs/smbfs/smbfs_io.c +++ b/sys/fs/smbfs/smbfs_io.c @@ -592,7 +592,7 @@ smbfs_putpages(ap) #ifdef SMBFS_RWGENERIC td = curthread; /* XXX */ cred = td->td_ucred; /* XXX */ - VOP_OPEN(vp, FWRITE, cred, td, -1); + VOP_OPEN(vp, FWRITE, cred, td, NULL); error = vop_stdputpages(ap); VOP_CLOSE(vp, FWRITE, cred, td); return error; @@ -610,7 +610,7 @@ smbfs_putpages(ap) td = curthread; /* XXX */ cred = td->td_ucred; /* XXX */ -/* VOP_OPEN(vp, FWRITE, cred, td, -1);*/ +/* VOP_OPEN(vp, FWRITE, cred, td, NULL);*/ np = VTOSMB(vp); smp = VFSTOSMBFS(vp->v_mount); pages = ap->a_m; diff --git a/sys/gnu/fs/reiserfs/reiserfs_vfsops.c b/sys/gnu/fs/reiserfs/reiserfs_vfsops.c index e947379..ebfa6e5 100644 --- a/sys/gnu/fs/reiserfs/reiserfs_vfsops.c +++ b/sys/gnu/fs/reiserfs/reiserfs_vfsops.c @@ -457,7 +457,7 @@ reiserfs_mountfs(struct vnode *devvp, struct mount *mp, struct thread *td) * Open the device in read-only, 'cause we don't support write * for now */ - error = VOP_OPEN(devvp, FREAD, FSCRED, td, -1); + error = VOP_OPEN(devvp, FREAD, FSCRED, td, NULL); VOP_UNLOCK(devvp, 0, td); if (error) return (error); diff --git a/sys/kern/kern_alq.c b/sys/kern/kern_alq.c index 49aa0ac..a141034 100644 --- a/sys/kern/kern_alq.c +++ b/sys/kern/kern_alq.c @@ -356,7 +356,7 @@ alq_open(struct alq **alqp, const char *file, struct ucred *cred, int cmode, NDINIT(&nd, LOOKUP, NOFOLLOW | MPSAFE, UIO_SYSSPACE, file, td); flags = FWRITE | O_NOFOLLOW | O_CREAT; - error = vn_open_cred(&nd, &flags, cmode, cred, -1); + error = vn_open_cred(&nd, &flags, cmode, cred, NULL); if (error) return (error); diff --git a/sys/security/audit/audit_syscalls.c b/sys/security/audit/audit_syscalls.c index 3e3069e..cba0aa7 100644 --- a/sys/security/audit/audit_syscalls.c +++ b/sys/security/audit/audit_syscalls.c @@ -646,7 +646,7 @@ auditctl(struct thread *td, struct auditctl_args *uap) NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF | MPSAFE | AUDITVNODE1, UIO_USERSPACE, uap->path, td); flags = AUDIT_OPEN_FLAGS; - error = vn_open(&nd, &flags, 0, -1); + error = vn_open(&nd, &flags, 0, NULL); if (error) return (error); vfslocked = NDHASGIANT(&nd); diff --git a/sys/ufs/ufs/ufs_extattr.c b/sys/ufs/ufs/ufs_extattr.c index f49f988..3692329 100644 --- a/sys/ufs/ufs/ufs_extattr.c +++ b/sys/ufs/ufs/ufs_extattr.c @@ -321,7 +321,7 @@ ufs_extattr_enable_with_open(struct ufsmount *ump, struct vnode *vp, { int error; - error = VOP_OPEN(vp, FREAD|FWRITE, td->td_ucred, td, -1); + error = VOP_OPEN(vp, FREAD|FWRITE, td->td_ucred, td, NULL); if (error) { printf("ufs_extattr_enable_with_open.VOP_OPEN(): failed " "with %d\n", error); |