From 5030846333f769f13581ae7d57b1f913c3f384a2 Mon Sep 17 00:00:00 2001 From: Laslo Hunhold Date: Wed, 28 Jun 2017 08:40:34 +0200 Subject: [PATCH] Rename filetype() to suffix() --- quark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quark.c b/quark.c index 49cef68..ec58261 100644 --- a/quark.c +++ b/quark.c @@ -329,7 +329,7 @@ compareent(const struct dirent **d1, const struct dirent **d2) } static char * -filetype(int t) +suffix(int t) { switch (t) { case DT_FIFO: return "|"; @@ -389,7 +389,7 @@ senddir(int fd, char *name, struct request *r) e[i]->d_name, (e[i]->d_type == DT_DIR) ? "/" : "", e[i]->d_name, - filetype(e[i]->d_type)) < 0) { + suffix(e[i]->d_type)) < 0) { s = S_REQUEST_TIMEOUT; goto cleanup; }