From ae48dc3b3caeef7eaa4a079b11cdda988d9c1f0d Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sun, 21 Jun 2020 00:06:29 +0200 Subject: Add streq and strcaseeq and use them throughout --- utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'utils.c') 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)); -- cgit v1.2.3