]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/defines.h: Remove ITI_AGING
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 12 Dec 2023 16:37:30 +0000 (17:37 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 14 Feb 2024 03:06:51 +0000 (04:06 +0100)
ITI_AGING is not set through any build environment. If it would be set,
then timings in /etc/shadow would not fit anymore.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Cherry-picked-from: ab260fcd1f6f ("lib/defines.h: Remove ITI_AGING")
Link: <https://github.com/shadow-maint/shadow/pull/873>
Link: <https://github.com/shadow-maint/shadow/pull/876>
Cc: "Serge E. Hallyn" <serge@hallyn.com>
[alx: This is a pre-requisite for 674409e2265e ("lib/: Saturate addition to avoid overflow")]
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/defines.h

index b289a72dfff8ae722658c6c7584fce1520f101db..00f3da728f9e44f3cd0ec0ff8d51c246f2ed0e34 100644 (file)
@@ -163,11 +163,7 @@ static inline void memzero(void *ptr, size_t size)
 
 #define WEEK (7*DAY)
 
-#ifdef ITI_AGING
-#define SCALE 1
-#else
 #define SCALE DAY
-#endif
 
 #define WIDTHOF(x)   (sizeof(x) * CHAR_BIT)
 #define NITEMS(arr)  (sizeof((arr)) / sizeof((arr)[0]))