summaryrefslogtreecommitdiffstats
path: root/bin/df/df.c
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2007-04-06 15:36:43 +0000
committerkan <kan@FreeBSD.org>2007-04-06 15:36:43 +0000
commiteac6857b97d48eafa51964ac6f3e04ae2ba8a3a5 (patch)
treeb1b6e6284e744094e1dff8f24ba245bb35b43658 /bin/df/df.c
parent7ef6ebad15de0ca614c05c8d5edb41a6b8f2ead2 (diff)
downloadFreeBSD-src-eac6857b97d48eafa51964ac6f3e04ae2ba8a3a5.zip
FreeBSD-src-eac6857b97d48eafa51964ac6f3e04ae2ba8a3a5.tar.gz
getblocksize expects pointer to long as a second argument, not
a pointer to u_long.
Diffstat (limited to 'bin/df/df.c')
-rw-r--r--bin/df/df.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/df/df.c b/bin/df/df.c
index 9fdf14d..5420da9 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -384,7 +384,7 @@ fsbtoblk(int64_t num, uint64_t fsbs, u_long bs)
static void
prtstat(struct statfs *sfsp, struct maxwidths *mwp)
{
- static u_long blocksize;
+ static long blocksize;
static int headerlen, timesthrough = 0;
static const char *header;
int64_t used, availblks, inodes;
@@ -461,7 +461,7 @@ addstat(struct statfs *totalfsp, struct statfs *statfsp)
static void
update_maxwidths(struct maxwidths *mwp, const struct statfs *sfsp)
{
- static u_long blocksize = 0;
+ static long blocksize = 0;
int dummy;
if (blocksize == 0)
OpenPOWER on IntegriCloud