kdc: Make MAX_TIME INT32_MAX always

This just to be consistent with a likely coming change to make
HDB_entry's max_life signed.  68 years is long enough.
This commit is contained in:
Nicolas Williams
2026-01-21 18:08:39 -06:00
parent c1c0be207e
commit 1faea3ffcf

View File

@@ -37,16 +37,16 @@
#if SIZEOF_TIME_T == 4
#define MAX_TIME ((time_t)INT32_MAX)
#elif SIZEOF_TIME_T == 8
#define MAX_TIME ((time_t)INT64_MAX)
#define MAX_TIME ((time_t)INT32_MAX)
#else
#error "Unexpected sizeof(time_t)"
#endif
#else
#if SIZEOF_TIME_T == 4
#define MAX_TIME ((time_t)UINT32_MAX)
#define MAX_TIME ((time_t)INT32_MAX)
#else
#define MAX_TIME ((time_t)UINT64_MAX)
#define MAX_TIME ((time_t)INT32_MAX)
#endif
#endif