diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-12-30 14:00:22 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-12-30 14:00:22 +0100 |
commit | 24fdae54988518c4ddbb833c1675fe1977104af6 (patch) | |
tree | 32874b38f44cb31a9b510025790e19cbdeb7b848 | |
parent | 6908189fc496f6acd8755a9b6f00270a7f352dcb (diff) |
More consting
-rw-r--r-- | cbs.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |