lib/defines.h: Remove ITI_AGING
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:ab260fcd1f("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 for674409e226("lib/: Saturate addition to avoid overflow")] Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
committed by
Alejandro Colomar
parent
24605a1b62
commit
25fd8eb404
@@ -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]))
|
||||
|
||||
Reference in New Issue
Block a user