diff options
author | Benny Baumann <BenBE@geshi.org> | 2020-10-31 23:28:02 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2020-11-02 22:15:01 +0100 |
commit | 61e14d4bb25268593019e6df3eb02264b4ac8e0e (patch) | |
tree | 910b68d9a5ee1c4d25b2cf3ee24abaaf3e6a096b /DateTimeMeter.c | |
parent | b23f8235e28472c410dcb00893e0e3d403892673 (diff) |
Spacing around operators
Diffstat (limited to 'DateTimeMeter.c')
-rw-r--r-- | DateTimeMeter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/DateTimeMeter.c b/DateTimeMeter.c index 74582191..ad5e81ea 100644 --- a/DateTimeMeter.c +++ b/DateTimeMeter.c @@ -22,9 +22,9 @@ static const int DateTimeMeter_attributes[] = { static void DateTimeMeter_updateValues(Meter* this, char* buffer, int size) { time_t t = time(NULL); struct tm result; - struct tm *lt = localtime_r(&t, &result); + struct tm* lt = localtime_r(&t, &result); int year = lt->tm_year + 1900; - if (((year % 4 == 0) && (year % 100!= 0)) || (year%400 == 0)) { + if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)) { this->total = 366; } else { |