who: simplify based on readutmp changes
commitad823360267cbfb3f5b1b3e1438122e5c82eb0b2
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Aug 2023 03:03:40 +0000 (8 20:03 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 9 Aug 2023 03:05:33 +0000 (8 20:05 -0700)
treefe258d4b77cfc6d85a171fa76a0faf4ae6acb187
parent422dcd424ca6b5fbef8d3bd0088e8e9e3757a203
who: simplify based on readutmp changes

* src/pinky.c (time_string, print_entry, scan_entries, short_pinky):
* src/uptime.c (print_uptime, uptime):
* src/users.c (list_entries_users, users):
* src/who.c (UT_TYPE_RUN_LVL, UT_TYPE_INIT_PROCESS)
(UT_TYPE_LOGIN_PROCESS, UT_TYPE_DEAD_PROCESS, UT_TYPE_NEW_TIME)
(time_string, print_user, print_boottime)
(make_id_equals_comment, print_deadprocs, print_login)
(print_initspawn, print_clockchange, print_runlevel)
(list_entries_who, scan_entries, who):
Simplify, partly by using plain -> rather than macros.
src/pinky.c
src/uptime.c
src/users.c
src/who.c