From a650c606fecc7e3938345e2bc52050a9ea725e7a Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 6 Sep 2006 17:04:06 +0000 Subject: spacing fixes: no tabs, 2-space indents (for rtm) --- ls.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'ls.c') diff --git a/ls.c b/ls.c index 34fac2a..395b307 100644 --- a/ls.c +++ b/ls.c @@ -59,17 +59,17 @@ main(int argc, char *argv[]) sz = st.st_size; for(off = 0; off < sz; off += sizeof(struct dirent)) { if (read(fd, &dirent, sizeof(struct dirent)) != sizeof(struct dirent)) { - printf(1, "ls: read error\n"); - break; + printf(1, "ls: read error\n"); + break; } if (dirent.inum != 0) { - // xxx prepend to name the pathname supplied to ls (e.g. .. in ls ..) - if (stat (dirent.name, &st) < 0) { - printf(1, "stat: failed %s\n", dirent.name); - continue; - } - pname(dirent.name); - printf(1, "%d %d %d\n", st.st_type, dirent.inum, st.st_size); + // xxx prepend to name the pathname supplied to ls (e.g. .. in ls ..) + if (stat (dirent.name, &st) < 0) { + printf(1, "stat: failed %s\n", dirent.name); + continue; + } + pname(dirent.name); + printf(1, "%d %d %d\n", st.st_type, dirent.inum, st.st_size); } } break; -- cgit v1.2.3