aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-12-30 14:00:22 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-12-30 14:00:22 +0100
commit24fdae54988518c4ddbb833c1675fe1977104af6 (patch)
tree32874b38f44cb31a9b510025790e19cbdeb7b848
parent6908189fc496f6acd8755a9b6f00270a7f352dcb (diff)
More consting
-rw-r--r--cbs.h4
1 files 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);
}