]> git.ipfire.org Git - pakfire.git/commitdiff
repo: Fix compiler warning due to iterating over the wrong type
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Sep 2023 13:16:11 +0000 (13:16 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 Sep 2023 13:16:11 +0000 (13:16 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/repo.c

index a9f0e3d960bcc18b163e9258cb571d5267dcfa26..adb77b0daa68fd2b6373a742a666f6c73b5a1a24 100644 (file)
@@ -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;