]> Savannah Git Hosting - gnulib.git/commit
readutmp: Reduce code duplication.
authorBruno Haible <bruno@clisp.org>
Sat, 12 Aug 2023 17:01:56 +0000 (19:01 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 12 Aug 2023 17:40:18 +0000 (19:40 +0200)
commit826c19d3dc416244267d3d21f7a901a7163d7d22
tree0e57f2dbd62662e2e96ebd4babd3af3db2c9ca23
parent46decc1c8c159527f82cc2fb69715802f8c45a42
readutmp: Reduce code duplication.

* lib/readutmp.c (have_boot_time): New function.
(read_utmp_from_file): Invoke it, instead of duplicating the same loop.
ChangeLog
lib/readutmp.c