* lib/readutmp.h (UT_ID_SIZE): New constant and macro.
+2023-08-02 Bruno Haible <bruno@clisp.org>
+
+ readutmp: Small change to reduce the code size on the coreutils side.
+ * lib/readutmp.h (UT_ID_SIZE): New constant and macro.
+
2023-08-01 Bruno Haible <bruno@clisp.org>
readutmp: Small changes to reduce the code size on the coreutils side.
# define UT_USER_SIZE UT_USER_SIZE
# endif
+/* Size of the ut->ut_id member, or -1 if unbounded. */
+# if READUTMP_USE_SYSTEMD
+enum { UT_ID_SIZE = -1 };
+# else
+enum { UT_ID_SIZE = sizeof (((STRUCT_UTMP *) 0)->ut_id) };
+# define UT_ID_SIZE UT_ID_SIZE
+# endif
+
/* Size of the ut->ut_line member, or -1 if unbounded. */
# if READUTMP_USE_SYSTEMD
enum { UT_LINE_SIZE = -1 };