From 13ba408ef3316958b7cf9d5c1cdd3c222b1425ad Mon Sep 17 00:00:00 2001 From: dacctal Date: Fri, 26 Jun 2026 01:52:35 +0000 Subject: fixed -Wall and -Wextra warnings --- src/update_all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/update_all.c') diff --git a/src/update_all.c b/src/update_all.c index 16b8636..8a7d57f 100644 --- a/src/update_all.c +++ b/src/update_all.c @@ -23,7 +23,7 @@ void update_all() { while ((dirent_ptr = readdir(dir_ptr)) != NULL) { if (strcmp(dirent_ptr->d_name, "..") == 0 || strcmp(dirent_ptr->d_name, ".") == 0) continue; for (size_t i = 0; i < cached_repos_count; i++) { - if (!strcmp(dirent_ptr->d_name, cached_repos[i].source_key) == 0) continue; + if (strcmp(dirent_ptr->d_name, cached_repos[i].source_key) != 0) continue; Pkg pkg = create_pkg(cached_repos[i].source_value); update_pkg(pkg); } -- cgit v1.2.3