]> Savannah Git Hosting - gnulib.git/commitdiff
readutmp: Fix a mistake (regression 2023-08-08).
authorBruno Haible <bruno@clisp.org>
Wed, 9 Aug 2023 23:55:33 +0000 (01:55 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 9 Aug 2023 23:55:33 +0000 (01:55 +0200)
* lib/readutmp.c (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED): Fix a typo.

ChangeLog
lib/readutmp.c

index 6fde91a679ac15e6d7b14aeaf5791171de418a51..3c2256a7b2e7645d151192ec88f26862915b879d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2023-08-09  Bruno Haible  <bruno@clisp.org>
 
+       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.
index 537846c1446b6ab5eb6043a5df1841247517bfae..ec21f5e16f27335165b33f91d55be04480f159b2 100644 (file)
@@ -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