]> git.ipfire.org Git - location/libloc.git/commitdiff
tests: Constify path to open in database test
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Mar 2025 18:00:45 +0000 (18:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Mar 2025 18:00:45 +0000 (18:00 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/test-database.c

index 8ba558a3eb4c82b34c0cfbb8787b5215c4613889..bfa218fcc0e6c3c610d049d482f11cd6d0629462 100644 (file)
@@ -46,7 +46,7 @@ const char* networks[] = {
        NULL,
 };
 
-static int attempt_to_open(struct loc_ctx* ctx, char* path) {
+static int attempt_to_open(struct loc_ctx* ctx, const char* path) {
        FILE* f = fopen(path, "r");
        if (!f)
                return -1;