summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-21 00:06:29 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-21 00:06:29 +0200
commitae48dc3b3caeef7eaa4a079b11cdda988d9c1f0d (patch)
tree2b9ec4898b7fd71ae3551ee72f7891640dec5c07 /utils.c
parentab51ac11e68ce0b075688bf17fc89e0ba645b2ed (diff)
Add streq and strcaseeq and use them throughout
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils.c b/utils.c
index 0ddaa28..fc1b81a 100644
--- a/utils.c
+++ b/utils.c
@@ -135,8 +135,7 @@ debug_resource_usage()
debug(DBG_MALLOC, "Open files:");
while ((dent = readdir(dir)) != NULL) {
- if (!strcmp(dent->d_name, ".") ||
- !strcmp(dent->d_name, ".."))
+ if (streq(dent->d_name, ".") || streq(dent->d_name, ".."))
continue;
r = readlinkat(dirfd(dir), dent->d_name, buf, sizeof(buf));