[hackers] [ubase] df: Don't scream if statvfs() fails || sin
commit ac4fcddd50aba673e38563a69b7a8e5a20ef28e8
Author: sin <sin_AT_2f30.org>
AuthorDate: Tue Feb 16 15:19:25 2016 +0000
Commit: sin <sin_AT_2f30.org>
CommitDate: Tue Feb 16 15:20:10 2016 +0000
df: Don't scream if statvfs() fails
diff --git a/df.c b/df.c
index 3b71e53..4d595d6 100644
--- a/df.c
+++ b/df.c
_AT_@ -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;
_AT_@ -138,4 +136,4 @@ main(int argc, char *argv[])
endmntent(fp);
return ret;
-}
\ No newline at end of file
+}
Received on Tue Feb 16 2016 - 16:20:22 CET
This archive was generated by hypermail 2.3.0
: Tue Feb 16 2016 - 16:24:12 CET