Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ucbvax!CITHEX.CALTECH.EDU!carl From: carl@CITHEX.CALTECH.EDU.UUCP Newsgroups: mod.computers.vax Subject: Correction to and comment on DISKACCT program Message-ID: <870206055736.056@CitHex.Caltech.Edu> Date: Fri, 6-Feb-87 08:57:36 EST Article-I.D.: CitHex.870206055736.056 Posted: Fri Feb 6 08:57:36 1987 Date-Received: Sat, 7-Feb-87 19:25:39 EST Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 10 Approved: info-vax@sri-kl.arpa The routine main in the DISKACCT program I sent the other day should contain the declaration/initialization: unsigned short FFFF = 0xFFFF; and the line reading: else if (header.H.FLEV & 0xFF < 1) should be replaced by: else if ((header.H.FLEV & 0xFF) < 1) The program as written doesn't include file headers in the summaries. To include file headers, count should be initialized to 1 instead of 0 in the loop that deals with retrieval pointers.