<utmpx.h>: Change struct utmpx's ut_type from uint16_t to short, per POSIX.
authorSascha Wildner <saw@online.de>
Sun, 23 Dec 2018 08:13:58 +0000 (09:13 +0100)
committerSascha Wildner <saw@online.de>
Sun, 23 Dec 2018 08:13:58 +0000 (09:13 +0100)
commit14f65205020a4c38ae02896eea150f3db55eb086
tree18329a30804b0fba37c69f331a8be6d5b5565f9d
parent499494d852388060e98608a592c08a92885abdbb
<utmpx.h>: Change struct utmpx's ut_type from uint16_t to short, per POSIX.

See https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/utmpx.h.html

Our valid ut_types are 0-8 currently, so there should not be any issues.

Also fix a no longer necessary cast in utmp_update.
include/utmpx.h
lib/libc/gen/endutxent.3
libexec/utmp_update/utmp_update.c
usr.bin/who/utmpentry.h