From fb1fafceb5b4379705e5463ff5dbbb82dd3be36f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 10 Aug 2023 01:55:33 +0200 Subject: [PATCH] readutmp: Fix a mistake (regression 2023-08-08). * lib/readutmp.c (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED): Fix a typo. --- ChangeLog | 3 +++ lib/readutmp.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6fde91a679..3c2256a7b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2023-08-09 Bruno Haible + readutmp: Fix a mistake (regression 2023-08-08). + * lib/readutmp.c (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED): Fix a typo. + readutmp: Return a boot time also on OpenBSD. * lib/readutmp.h (BOOT_TIME, USER_PROCESS): Provide fallback definitions. diff --git a/lib/readutmp.c b/lib/readutmp.c index 537846c144..ec21f5e16f 100644 --- a/lib/readutmp.c +++ b/lib/readutmp.c @@ -78,7 +78,7 @@ #endif /* Accessor macros for the member named ut_type. */ -#if (HAVE_UTMPX_H ? HAVE_STRUCT_UTMP_UT_TYPE : HAVE_STRUCT_UTMPX_UT_TYPE) +#if (HAVE_UTMPX_H ? HAVE_STRUCT_UTMPX_UT_TYPE : HAVE_STRUCT_UTMP_UT_TYPE) # define UT_TYPE_EQ(UT, V) ((UT)->ut_type == (V)) # define UT_TYPE_NOT_DEFINED 0 #else -- 2.39.5