sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit 93f1fc4614a0d455eaaec86a8fe0562290849dba
parent 365e1a324a0f1d347455eec26e8a0b0e58d95877
Author: FRIGN <dev@frign.de>
Date:   Mon, 31 Aug 2015 18:02:10 +0200

Remove trailing whitespace inside of ls(1)

Diffstat:
Mls.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ls.c b/ls.c @@ -122,7 +122,7 @@ output(const struct entry *ent) if (qflag) { name = emalloc(strlen(ent->name) + 1); - + for (c = name, u = ent->name; *u; u += l) { l = chartorune(&r, u); if (isprintrune(r)) { @@ -431,7 +431,7 @@ main(int argc, char *argv[]) switch (argc) { case 0: /* fallthrough */ *--argv = ".", ++argc; - case 1: + case 1: ent = emalloc(sizeof(*ent)); mkent(ent, argv[0], 1, Hflag || Lflag); ls("", ent, (!dflag && S_ISDIR(ent->mode)) || @@ -454,7 +454,7 @@ main(int argc, char *argv[]) fents[fs - 1] = ent; } } - + qsort(fents, fs, sizeof(ent), entcmp); qsort(dents, ds, sizeof(ent), entcmp);