diff --git a/df.c b/df.c index 3b71e53..4d595d6 100644 --- a/df.c +++ b/df.c @@ -60,10 +60,8 @@ mnt_show(const char *fsname, const char *dir) int capacity = 0; int bs; - if (statvfs(dir, &s) < 0) { - weprintf("statvfs %s:", dir); + if (statvfs(dir, &s) < 0) return -1; - } bs = s.f_frsize / blksize; total = s.f_blocks * bs; @@ -138,4 +136,4 @@ main(int argc, char *argv[]) endmntent(fp); return ret; -} \ No newline at end of file +}