From 24fdae54988518c4ddbb833c1675fe1977104af6 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 30 Dec 2023 14:00:22 +0100 Subject: More consting --- cbs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cbs.h b/cbs.h index 2f147c6..f04be48 100644 --- a/cbs.h +++ b/cbs.h @@ -162,7 +162,7 @@ static void cmdputf(FILE *, cmd_t); /* Returns if a file exists at the given path. A return value of false may also mean you don’t have the proper file access permissions, which will also set errno. */ -static bool fexists(char *); +static bool fexists(const char *); /* Compare the modification dates of the two named files. @@ -491,7 +491,7 @@ cmdputf(FILE *stream, cmd_t cmd) } bool -fexists(char *f) +fexists(const char *f) { return !access(f, F_OK); } -- cgit v1.2.3