From 6ff3a34ff17a3d8bc56e6f9c74c60c304f60e068 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 23 May 2025 14:15:36 +0100 Subject: [PATCH] testsuite: reuse streq() whenever possible Use our handy macro(s) for clarity and consistency sake. Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/354 Signed-off-by: Lucas De Marchi --- testsuite/delete_module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/delete_module.c b/testsuite/delete_module.c index 68a79220..088496a4 100644 --- a/testsuite/delete_module.c +++ b/testsuite/delete_module.c @@ -142,7 +142,7 @@ static int remove_directory(const char *path) } while ((entry = readdir(dir)) != NULL) { - if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0) + if (streq(entry->d_name, ".") || streq(entry->d_name, "..")) continue; snprintf(full_path, sizeof(full_path), "%s/%s", path, entry->d_name); -- 2.47.3