commit 5030846333f769f13581ae7d57b1f913c3f384a2
parent 1e65a4848e04660ae4d4717777ef418993da6a7e
Author: Laslo Hunhold <dev@frign.de>
Date: Wed, 28 Jun 2017 08:40:34 +0200
Rename filetype() to suffix()
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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;
}