]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
util-lib: add (void) cast to indicate that we don't care about the normalization...
authorLennart Poettering <lennart@poettering.net>
Sun, 21 Feb 2016 22:25:38 +0000 (23:25 +0100)
committerLennart Poettering <lennart@poettering.net>
Sun, 21 Feb 2016 22:25:38 +0000 (23:25 +0100)
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.

src/basic/calendarspec.c

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