[hackers] [quark] Rename filetype() to suffix() || Laslo Hunhold
commit 5030846333f769f13581ae7d57b1f913c3f384a2
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Wed Jun 28 08:40:34 2017 +0200
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Wed Jun 28 08:40:34 2017 +0200
Rename filetype() to suffix()
diff --git a/quark.c b/quark.c
index 49cef68..ec58261 100644
--- a/quark.c
+++ b/quark.c
_AT_@ -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 "|";
_AT_@ -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;
}
Received on Wed Jun 28 2017 - 20:20:24 CEST
This archive was generated by hypermail 2.3.0
: Wed Jun 28 2017 - 20:24:20 CEST