summaryrefslogtreecommitdiff
path: root/bin/df/df.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-14 22:47:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-14 22:47:19 +0000
commitca64a47efc4bd176463abac5e9c59134fcb770a4 (patch)
tree1a16d41fddd8e626b3a5c232b3edcc972a7cc4c0 /bin/df/df.c
parent2618e97f09a87a26a32e68a89cf3d909ed3f05fc (diff)
remove unused variable
Diffstat (limited to 'bin/df/df.c')
-rw-r--r--bin/df/df.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index e16d5f2c88d..4571f05425b 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: df.c,v 1.37 2003/07/29 00:24:15 deraadt Exp $ */
+/* $OpenBSD: df.c,v 1.38 2004/09/14 22:47:18 deraadt Exp $ */
/* $NetBSD: df.c,v 1.21.2.1 1995/11/01 00:06:11 jtc Exp $ */
/*
@@ -45,7 +45,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)df.c 8.7 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: df.c,v 1.37 2003/07/29 00:24:15 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: df.c,v 1.38 2004/09/14 22:47:18 deraadt Exp $";
#endif
#endif /* not lint */
@@ -394,7 +394,6 @@ void
posixprint(struct statfs *mntbuf, long mntsize, int maxwidth)
{
int i;
- int blocklen;
int blocksize;
char *blockstr;
struct statfs *sfsp;
@@ -408,11 +407,10 @@ posixprint(struct statfs *mntbuf, long mntsize, int maxwidth)
blocksize = 512;
blockstr = " 512-blocks";
}
- blocklen = strlen(blockstr);
(void)printf(
- "%-*.*s %s Used Available Capacity Mounted on\n",
- maxwidth, maxwidth, "Filesystem", blockstr);
+ "%-*.*s %s Used Available Capacity Mounted on\n",
+ maxwidth, maxwidth, "Filesystem", blockstr);
for (i = 0; i < mntsize; i++) {
sfsp = &mntbuf[i];