summaryrefslogtreecommitdiffstats
path: root/Settings.h
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-03-12 16:56:06 +0100
committerChristian Göttsche <cgzones@googlemail.com>2021-03-12 16:56:06 +0100
commit521f1343e372e011326e10cf58a9ba1d191b7bdb (patch)
treeaea050326b3d520f96b6e6a1480c9b21229b50d3 /Settings.h
parent350b48e44c45a280520c15762a04940670b6aec9 (diff)
Settings: check if writing configuration file was successful
Writing to the file stream might fail due to a immutable file or a filesystem error. Check the error indicator for the stream and for fclose() failures.
Diffstat (limited to 'Settings.h')
-rw-r--r--Settings.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Settings.h b/Settings.h
index c18173b4..471792bd 100644
--- a/Settings.h
+++ b/Settings.h
@@ -87,7 +87,7 @@ static inline int Settings_getActiveDirection(const Settings* this) {
void Settings_delete(Settings* this);
-bool Settings_write(const Settings* this);
+int Settings_write(const Settings* this);
Settings* Settings_new(int initialCpuCount);

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