summaryrefslogtreecommitdiffstats
path: root/XUtils.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-01-05 23:42:55 +0100
committerBenBE <BenBE@geshi.org>2021-01-11 20:12:34 +0100
commitd72b0a682ecad0a8d5793022733447e855a61798 (patch)
treed9bc511bb716030fd73675bd3474e5a043636d73 /XUtils.c
parent1b2d48bc9aa93254c48d10bb34acde9596b526b9 (diff)
Mark several non-modified pointer variables const
Diffstat (limited to 'XUtils.c')
-rw-r--r--XUtils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/XUtils.c b/XUtils.c
index 9ad8c224..3661714b 100644
--- a/XUtils.c
+++ b/XUtils.c
@@ -173,7 +173,7 @@ char* String_readLine(FILE* fd) {
char* buffer = xMalloc(step + 1);
char* at = buffer;
for (;;) {
- char* ok = fgets(at, step + 1, fd);
+ const char* ok = fgets(at, step + 1, fd);
if (!ok) {
free(buffer);
return NULL;

© 2014-2024 Faster IT GmbH | imprint | privacy policy