sbase

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

commit 9184172100cb226ebfa051965b095b4e66256a45
parent e434f9d3004b5c2bb87d87a12a70c95be8d45e34
Author: FRIGN <dev@frign.de>
Date:   Mon Aug 31 18:02:10 +0200

Remove trailing whitespace inside of ls(1)

Diffstat:
ls.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);