Subject: bin/1297: df.c: unsed variable
To: None <gnats-bugs@NetBSD.ORG>
From: Giles Lean <giles@nemeton.com.au>
List: netbsd-bugs
Date: 07/29/1995 11:58:21
>Number: 1297
>Category: bin
>Synopsis: unsued variable in df.c
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 30 17:35:04 1995
>Last-Modified:
>Originator: Giles Lean
>Organization:
Giles Lean Nemeton Pty Ltd
<giles@nemeton.com.au> phone: +61 3 480 2118
>Release: July 29 1995
>Environment:
System: NetBSD topaz.nemeton.com.au 1.0A NetBSD 1.0A (TOPAZ) #11: Sun Jul 23 14:54:46 EST 1995 giles@topaz.nemeton.com.au:/usr/src/sys/arch/i386/compile/TOPAZ i386
>Description:
Unused variable in df/df.c.
>How-To-Repeat:
gcc -Wall ...
>Fix:
Delete the variable. Tricky stuff.
*** df.c.orig Sat Jul 29 11:55:08 1995
--- df.c Sat Jul 29 11:55:50 1995
***************
*** 83,89 ****
char *argv[];
{
struct stat stbuf;
! struct statfs statfsbuf, *mntbuf;
long mntsize;
int ch, i, maxwidth, width;
char *mntpt;
--- 83,89 ----
char *argv[];
{
struct stat stbuf;
! struct statfs *mntbuf;
long mntsize;
int ch, i, maxwidth, width;
char *mntpt;
>Audit-Trail:
>Unformatted: