summaryrefslogtreecommitdiffstats
path: root/daemon/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/ls.c')
-rw-r--r--daemon/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/ls.c b/daemon/ls.c
index 3e3183ad..0af2356b 100644
--- a/daemon/ls.c
+++ b/daemon/ls.c
@@ -47,7 +47,7 @@ do_ls (const char *path)
}
while ((d = readdir (dir)) != NULL) {
- if (strcmp (d->d_name, ".") == 0 || strcmp (d->d_name, "..") == 0)
+ if (STREQ (d->d_name, ".") || STREQ (d->d_name, ".."))
continue;
if (add_string (&r, &size, &alloc, d->d_name) == -1) {