From beca99cb07097bce456491ecd55e742eb8fbfbdb Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 17 Sep 2023 13:16:11 +0000 Subject: [PATCH] repo: Fix compiler warning due to iterating over the wrong type Signed-off-by: Michael Tremer --- src/libpakfire/repo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libpakfire/repo.c b/src/libpakfire/repo.c index a9f0e3d96..adb77b0da 100644 --- a/src/libpakfire/repo.c +++ b/src/libpakfire/repo.c @@ -218,7 +218,7 @@ int pakfire_repo_import(struct pakfire* pakfire, struct pakfire_config* config) int r = 0; // Walk through all sections - for (char** section = sections; *section; section++) { + for (const char** section = sections; *section; section++) { // Skip sections that do not start with "repo:" if (!pakfire_string_startswith(*section, "repo:")) continue; -- 2.47.3