diff options
author | EuAndreh <eu@euandre.org> | 2021-08-27 22:45:15 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-08-27 22:45:15 -0300 |
commit | 85c80ab6915a58cf84db94077335daeff9d9ba61 (patch) | |
tree | a4aa8e72b31ea1b4f4ed446a865d858f97903813 | |
parent | src/*.c: Add newline between function return type and its name (diff) | |
download | gistatic-85c80ab6915a58cf84db94077335daeff9d9ba61.tar.gz gistatic-85c80ab6915a58cf84db94077335daeff9d9ba61.tar.xz |
src/lib.c: Mark local FILE* variable as const
-rw-r--r-- | src/lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2226,7 +2226,7 @@ repo_write( } char description[DESCRIPTION_MAXLENGTH] = ""; - FILE *f = fopen(description_path, "r"); + FILE *const f = fopen(description_path, "r"); if (f) { if (!fgets(description, sizeof(description), f)) { logerrs("fget(\"", description_path, "\")", |