* lib/readutmp.c (struct utmpx32): Use unsigned int for tv_sec,
not int, as that is more likely to work after 2038.
Suggested by Andreas Schwab in:
https://sourceware.org/pipermail/libc-alpha/2023-August/150661.html
2023-08-05 Paul Eggert <eggert@cs.ucla.edu>
+ readutmp: anticipate Y2038 hack for utmp
+ * lib/readutmp.c (struct utmpx32): Use unsigned int for tv_sec,
+ not int, as that is more likely to work after 2038.
+ Suggested by Andreas Schwab in:
+ https://sourceware.org/pipermail/libc-alpha/2023-August/150661.html
+
diffseq: simplify lint removal
* lib/diffseq.h (IF_LINT): Remove.
Instead, always ignore the diagnostic, as that’s simpler
int ut_session; /* Session ID, used for windowing. */
struct
{
- int tv_sec; /* Seconds. */
+ /* Seconds. Unsigned not signed, as glibc did not exist before 1970,
+ and if the format is still in use after 2038 its timestamps
+ will surely have the sign bit on. This hack stops working
+ at 2106-02-07 06:28:16 UTC. */
+ unsigned int tv_sec;
+
int tv_usec; /* Microseconds. */
} ut_tv; /* Time entry was made. */
int ut_addr_v6[4]; /* Internet address of remote host. */