1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-05 06:52:22 +03:00

util-lib: add (void) cast to indicate that we don't care about the normalization success

After all, we verify that every calendar part is not out of bounds later on,
and it's fully OK if the normalization has no effect.
This commit is contained in:
Lennart Poettering 2016-02-21 23:25:38 +01:00
parent 714c62b463
commit ea3894c1ba

View File

@ -978,7 +978,7 @@ static int find_next(const CalendarSpec *spec, struct tm *tm, usec_t *usec) {
for (;;) { for (;;) {
/* Normalize the current date */ /* Normalize the current date */
mktime_or_timegm(&c, spec->utc); (void) mktime_or_timegm(&c, spec->utc);
c.tm_isdst = -1; c.tm_isdst = -1;
c.tm_year += 1900; c.tm_year += 1900;