summaryrefslogtreecommitdiffstats
path: root/ClockMeter.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 /ClockMeter.c
parent1b2d48bc9aa93254c48d10bb34acde9596b526b9 (diff)
Mark several non-modified pointer variables const
Diffstat (limited to 'ClockMeter.c')
-rw-r--r--ClockMeter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ClockMeter.c b/ClockMeter.c
index 023ca425..654d9074 100644
--- a/ClockMeter.c
+++ b/ClockMeter.c
@@ -22,7 +22,7 @@ static const int ClockMeter_attributes[] = {
static void ClockMeter_updateValues(Meter* this, char* buffer, size_t size) {
time_t t = time(NULL);
struct tm result;
- struct tm* lt = localtime_r(&t, &result);
+ const struct tm* lt = localtime_r(&t, &result);
this->values[0] = lt->tm_hour * 60 + lt->tm_min;
strftime(buffer, size, "%H:%M:%S", lt);
}

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