From 6af696b8ecb300bc18497794e1530ecbc6e8d352 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Fri, 22 Jun 2012 13:49:27 -0600 Subject: [PATCH] I hate this directory indexing output less --- eris.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eris.c b/eris.c index 28c0a7e..c05a9b1 100644 --- a/eris.c +++ b/eris.c @@ -410,7 +410,7 @@ serve_idx(int fd, char *path) } if (S_ISDIR(st.st_mode)) { - printf("[DIR] "); + printf("[DIR] "); } else if (S_ISLNK(st.st_mode)) { ssize_t len = readlink(de->d_name, symlink, (sizeof symlink) - 1); @@ -418,9 +418,9 @@ serve_idx(int fd, char *path) continue; } name = symlink; - printf("[LNK] "); /* symlink */ + printf("[LNK] "); /* symlink */ } else if (S_ISREG(st.st_mode)) { - printf("[ ] %10llu", (unsigned long long)st.st_size); + printf("%10llu", (unsigned long long)st.st_size); } else { continue; /* not a file we can provide -> skip */ }