From e4c8055a9eff649fe862e24a3f921ce56756ac7b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 25 Feb 2015 00:45:50 -0600 Subject: stat -f didn't work on 32 bit systems because type sizes wrong (fix from Elliott Hughes). --- toys/other/stat.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/toys/other/stat.c b/toys/other/stat.c index d6033164..a96c1def 100644 --- a/toys/other/stat.c +++ b/toys/other/stat.c @@ -106,11 +106,11 @@ static void print_stat(char type) static void print_statfs(char type) { struct statfs *statfs = (struct statfs *)&TT.stat; - if (type == 'a') xprintf("%lu", statfs->f_bavail); - else if (type == 'b') xprintf("%lu", statfs->f_blocks); - else if (type == 'c') xprintf("%lu", statfs->f_files); - else if (type == 'd') xprintf("%lu", statfs->f_ffree); - else if (type == 'f') xprintf("%lu", statfs->f_bfree); + if (type == 'a') xprintf("%llu", statfs->f_bavail); + else if (type == 'b') xprintf("%llu", statfs->f_blocks); + else if (type == 'c') xprintf("%llu", statfs->f_files); + else if (type == 'd') xprintf("%llu", statfs->f_ffree); + else if (type == 'f') xprintf("%llu", statfs->f_bfree); else if (type == 'l') xprintf("%ld", statfs->f_namelen); else if (type == 't') xprintf("%lx", statfs->f_type); else if (type == 'i') -- cgit v1.2.3