From: Michael Tremer Date: Thu, 6 Mar 2025 18:00:45 +0000 (+0000) Subject: tests: Constify path to open in database test X-Git-Tag: 0.9.18~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d61f11537ec51b2e316d9987071a3bc83772976d;p=location%2Flibloc.git tests: Constify path to open in database test Signed-off-by: Michael Tremer --- diff --git a/src/test-database.c b/src/test-database.c index 8ba558a..bfa218f 100644 --- a/src/test-database.c +++ b/src/test-database.c @@ -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;