strtoday: remove unnecessary cast

Resolves: https://github.com/shadow-maint/shadow/issues/704

Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
This commit is contained in:
Iker Pedrosa 2023-06-07 14:58:34 +02:00 committed by Serge Hallyn
parent 787ea57a18
commit 89a7ee7b22

View File

@ -73,5 +73,5 @@ long strtoday (const char *str)
return -2;
}
/* convert seconds to days since 1970-01-01 */
return (long) (t + DAY / 2) / DAY;
return (t + DAY / 2) / DAY;
}