]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/defines.h: Use 'time_t' for DAY
authorAlejandro Colomar <alx@kernel.org>
Wed, 20 Dec 2023 16:56:32 +0000 (17:56 +0100)
committerSerge Hallyn <serge@hallyn.com>
Wed, 27 Dec 2023 15:55:25 +0000 (09:55 -0600)
commit0ee79295f604fdc52b3462065779655b0a2a65f4
treec5f266ead9016586e11cda2d676fb18b63648205
parentca6425e54ed6ad6008c5495f9102fb6b1edf5283
lib/defines.h: Use 'time_t' for DAY

Special care has to be taken for 32 bit systems with a 64 bit time_t,
since their long data type is still 32 bit.

Since this macro expresses a number of seconds, and seconds are in units
of 'time_t' in C, the appropriate type for the multiplication is
'time_t'.

Reported-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/defines.h