From: Michael Tremer Date: Sun, 17 Sep 2023 13:16:11 +0000 (+0000) Subject: repo: Fix compiler warning due to iterating over the wrong type X-Git-Tag: 0.9.30~1690 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=beca99cb07097bce456491ecd55e742eb8fbfbdb;p=pakfire.git repo: Fix compiler warning due to iterating over the wrong type Signed-off-by: Michael Tremer --- 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;