diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-03-12 16:48:41 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-03-12 16:48:41 +0100 |
commit | c38819a67548dbb432fa6995db9e58918316ace9 (patch) | |
tree | 062da6fc9b5a54efc6a56476c5ed187ace9bc2f2 /Settings.c | |
parent | d37d66bb3a089b9e66c6629a4855560984ac720d (diff) |
Settings: mark non-modified pointer parameters const
Diffstat (limited to 'Settings.c')
-rw-r--r-- | Settings.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -262,7 +262,7 @@ static void writeFields(FILE* fd, const ProcessField* fields, const char* name) fprintf(fd, "\n"); } -static void writeMeters(Settings* this, FILE* fd, int column) { +static void writeMeters(const Settings* this, FILE* fd, int column) { const char* sep = ""; for (int i = 0; i < this->columns[column].len; i++) { fprintf(fd, "%s%s", sep, this->columns[column].names[i]); @@ -271,7 +271,7 @@ static void writeMeters(Settings* this, FILE* fd, int column) { fprintf(fd, "\n"); } -static void writeMeterModes(Settings* this, FILE* fd, int column) { +static void writeMeterModes(const Settings* this, FILE* fd, int column) { const char* sep = ""; for (int i = 0; i < this->columns[column].len; i++) { fprintf(fd, "%s%d", sep, this->columns[column].modes[i]); @@ -280,7 +280,7 @@ static void writeMeterModes(Settings* this, FILE* fd, int column) { fprintf(fd, "\n"); } -bool Settings_write(Settings* this) { +bool Settings_write(const Settings* this) { FILE* fd = fopen(this->filename, "w"); if (fd == NULL) return false; |