aboutsummaryrefslogtreecommitdiff
path: root/sys/miscfs/fdesc
diff options
context:
space:
mode:
authorChris Costello <chris@FreeBSD.org>2000-06-15 17:19:22 +0000
committerChris Costello <chris@FreeBSD.org>2000-06-15 17:19:22 +0000
commit3b5ec073470955362cd677f7a4d8a85ebe9c9404 (patch)
treece1f16e43b1abf6a7f8243b610be25fce947f12f /sys/miscfs/fdesc
parentd78c2e654ba0f5422f4dac6ed3892d58b2c5a70f (diff)
Notes
Diffstat (limited to 'sys/miscfs/fdesc')
-rw-r--r--sys/miscfs/fdesc/fdesc_vnops.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/miscfs/fdesc/fdesc_vnops.c b/sys/miscfs/fdesc/fdesc_vnops.c
index 4397337636de..e6fa2213325a 100644
--- a/sys/miscfs/fdesc/fdesc_vnops.c
+++ b/sys/miscfs/fdesc/fdesc_vnops.c
@@ -271,8 +271,7 @@ fdesc_getattr(ap)
switch (VTOFDESC(vp)->fd_type) {
case Froot:
- bzero((caddr_t) vap, sizeof(*vap));
- vattr_null(vap);
+ VATTR_NULL(vap);
vap->va_mode = S_IRUSR|S_IXUSR|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH;
vap->va_type = VDIR;
@@ -326,7 +325,7 @@ fdesc_getattr(ap)
case DTYPE_KQUEUE:
error = fo_stat(fp, &stb, ap->a_p);
if (error == 0) {
- vattr_null(vap);
+ VATTR_NULL(vap);
if (fp->f_type == DTYPE_KQUEUE)
vap->va_type = VFIFO;
else
@@ -337,7 +336,6 @@ fdesc_getattr(ap)
vap->va_nlink = 1;
vap->va_flags = 0;
vap->va_bytes = stb.st_blocks * stb.st_blksize;
- vap->va_fsid = VNOVAL;
vap->va_fileid = VTOFDESC(vp)->fd_ix;
vap->va_size = stb.st_size;
vap->va_blocksize = stb.st_blksize;