[hackers] [sbase] Solve little output issue in du(1) || FRIGN

From: <git_AT_suckless.org>
Date: Mon, 6 Apr 2015 09:57:52 +0200 (CEST)

commit d8e829a88db8db9a5613a647fcd381bdbfee92f4
Author: FRIGN <dev_AT_frign.de>
Date: Sun Apr 5 23:28:49 2015 +0200

    Solve little output issue in du(1)
    
    Don't run the size throug nblks() twice.

diff --git a/du.c b/du.c
index 086c9b8..5b43598 100644
--- a/du.c
+++ b/du.c
_AT_@ -100,7 +100,7 @@ main(int argc, char *argv[])
 
         if (!argc) {
                 recurse(".", &n, &r);
- printpath(nblks(n), ".");
+ printpath(n, ".");
         } else {
                 for (; *argv; argc--, argv++) {
                         recurse(*argv, &n, &r);
Received on Mon Apr 06 2015 - 09:57:52 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 06 2015 - 10:00:15 CEST