summaryrefslogtreecommitdiffstats
path: root/sys/fs/hpfs/hpfs_vnops.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-11-27 00:34:13 +0000
committerjhb <jhb@FreeBSD.org>2001-11-27 00:34:13 +0000
commita65864a971fececb3bcffc383f302a7d233e1384 (patch)
treeae8aa87005cb9ea5a31e56932eba55b49222d13a /sys/fs/hpfs/hpfs_vnops.c
parent35af124436e4eda065c725189bfc6e21f2143b5a (diff)
downloadFreeBSD-src-a65864a971fececb3bcffc383f302a7d233e1384.zip
FreeBSD-src-a65864a971fececb3bcffc383f302a7d233e1384.tar.gz
Replace 'p' with 'td' as appropriate.
Diffstat (limited to 'sys/fs/hpfs/hpfs_vnops.c')
-rw-r--r--sys/fs/hpfs/hpfs_vnops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/hpfs/hpfs_vnops.c b/sys/fs/hpfs/hpfs_vnops.c
index 7f0beaf..c912514 100644
--- a/sys/fs/hpfs/hpfs_vnops.c
+++ b/sys/fs/hpfs/hpfs_vnops.c
@@ -500,7 +500,7 @@ hpfs_setattr(ap)
struct hpfsnode *hp = VTOHP(vp);
struct vattr *vap = ap->a_vap;
struct ucred *cred = ap->a_cred;
- struct thread *p = ap->a_td;
+ struct thread *td = ap->a_td;
int error;
dprintf(("hpfs_setattr(0x%x):\n", hp->h_no));
@@ -539,9 +539,9 @@ hpfs_setattr(ap)
if (vp->v_mount->mnt_flag & MNT_RDONLY)
return (EROFS);
if (cred->cr_uid != hp->h_uid &&
- (error = suser_xxx(cred, p->td_proc, PRISON_ROOT)) &&
+ (error = suser_xxx(cred, td->td_proc, PRISON_ROOT)) &&
((vap->va_vaflags & VA_UTIMES_NULL) == 0 ||
- (error = VOP_ACCESS(vp, VWRITE, cred, p))))
+ (error = VOP_ACCESS(vp, VWRITE, cred, td))))
return (error);
if (vap->va_atime.tv_sec != VNOVAL)
hp->h_atime = vap->va_atime.tv_sec;
@@ -565,7 +565,7 @@ hpfs_setattr(ap)
}
if (vap->va_size < hp->h_fn.fn_size) {
- error = vtruncbuf(vp, cred, p, vap->va_size, DEV_BSIZE);
+ error = vtruncbuf(vp, cred, td, vap->va_size, DEV_BSIZE);
if (error)
return (error);
error = hpfs_truncate(hp, vap->va_size);
OpenPOWER on IntegriCloud