From: Emil Velikov Date: Fri, 23 May 2025 13:15:36 +0000 (+0100) Subject: testsuite: reuse streq() whenever possible X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=6ff3a34ff17a3d8bc56e6f9c74c60c304f60e068;p=thirdparty%2Fkmod.git 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 --- 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);