From: Bruno Haible Date: Sat, 12 Aug 2023 12:13:21 +0000 (+0200) Subject: readutmp: Fix compilation error on OpenBSD (regression 2023-08-11). X-Git-Tag: v1.0~928 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=2e5f2c80d5a3d493009f3873247712a790d248bf;p=gnulib.git readutmp: Fix compilation error on OpenBSD (regression 2023-08-11). * lib/readutmp.c (read_utmp_from_file): Remove extraneous 'break' statement. --- diff --git a/ChangeLog b/ChangeLog index 472349e5e4..9f9637c988 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-08-12 Bruno Haible + + readutmp: Fix compilation error on OpenBSD (regression 2023-08-11). + * lib/readutmp.c (read_utmp_from_file): Remove extraneous 'break' + statement. + 2023-08-11 Bruno Haible boot-time: Add comment about multithread-safety. diff --git a/lib/readutmp.c b/lib/readutmp.c index f2e66899bb..d7baa69909 100644 --- a/lib/readutmp.c +++ b/lib/readutmp.c @@ -558,15 +558,12 @@ read_utmp_from_file (char const *file, idx_t *n_entries, STRUCT_UTMP **utmp_buf, { struct timespec boot_time; if (get_openbsd_boot_time (&boot_time) >= 0) - { - a = add_utmp (a, options, - "reboot", strlen ("reboot"), - "", 0, - "", 0, - "", 0, - 0, BOOT_TIME, boot_time, 0, 0, 0); - break; - } + a = add_utmp (a, options, + "reboot", strlen ("reboot"), + "", 0, + "", 0, + "", 0, + 0, BOOT_TIME, boot_time, 0, 0, 0); } } # endif