git: <utmpx.h>: Change struct utmpx's ut_type from uint16_t to short, per POSIX.

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Dec 23 01:10:26 PST 2018


commit 14f65205020a4c38ae02896eea150f3db55eb086
Author: Sascha Wildner <saw at online.de>
Date:   Sun Dec 23 09:13:58 2018 +0100

    <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.

Summary of changes:
 include/utmpx.h                   | 2 +-
 lib/libc/gen/endutxent.3          | 4 ++--
 libexec/utmp_update/utmp_update.c | 2 +-
 usr.bin/who/utmpentry.h           | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/14f65205020a4c38ae02896eea150f3db55eb086


-- 
DragonFly BSD source repository



More information about the Commits mailing list