From ec10364b89a9355798af92c714683c235e64681a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 27 Dec 1998 10:19:38 +0000 Subject: 1998-12-27 Roland McGrath * inode.c (diskfs_set_statfs): Remove __ from struct statfs members. Use bzero first instead of setting individual fields to zero. --- isofs/inode.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'isofs') diff --git a/isofs/inode.c b/isofs/inode.c index 0926ca28..a364c19e 100644 --- a/isofs/inode.c +++ b/isofs/inode.c @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 1997, 1998 Free Software Foundation, Inc. Written by Thomas Bushnell, n/BSG. @@ -549,17 +549,12 @@ diskfs_set_statfs (struct statfs *st) { /* There is no easy way to determine the number of files on an ISO 9660 filesystem. */ + bzero (st, sizeof *st); st->f_type = FSTYPE_ISO9660; st->f_bsize = logical_block_size; st->f_blocks = isonum_733 (sblock->vol_sp_size); - st->f_bfree = 0; - st->f_bavail = 0; - st->f_files = 0; - st->f_ffree = 0; st->f_fsid = getpid (); - st->f_namelen = 0; - st->__f_favail = 0; - st->__f_frsize = logical_block_size; + st->f_frsize = logical_block_size; return 0; } -- cgit v1.2.3