]> Savannah Git Hosting - gnulib.git/commit
readutmp: Make 'struct utmpx32' usable by other code.
authorBruno Haible <bruno@clisp.org>
Fri, 11 Aug 2023 14:09:22 +0000 (16:09 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 11 Aug 2023 20:03:10 +0000 (22:03 +0200)
commitcdbe33c428a82d42ff6fdcb48815edeb9d9d7fd8
tree948a9d02e05ae44edeb96069428914d0c366f9be
parent87f7ad5b9707702580f0b74023519936067a609d
readutmp: Make 'struct utmpx32' usable by other code.

* lib/readutmp.h (struct utmpx32): Moved to here from lib/readutmp.c.
(UTMP_STRUCT_NAME): Define as utmpx32 if needed.
* lib/readutmp.c (read_utmp_from_file): Simply use UTMP_STRUCT_NAME.
ChangeLog
lib/readutmp.c
lib/readutmp.h