From: Lionel Sambuc Date: Tue, 11 Dec 2012 17:03:26 +0000 (+0100) Subject: Changing field utmp.ut_time from int to time_t X-Git-Tag: v3.2.1~105 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=refs%2Fchanges%2F80%2F180%2F2;p=minix.git Changing field utmp.ut_time from int to time_t This makes sure the types are coherent, and right now, time_t is defined as an long, through _BSD_TIME_T_. It previously was hardcoded as an int, so the structure's size does not change. Change-Id: If29e94ab53f605d1480fadb540f5b67be4ddaf5b --- diff --git a/include/utmp.h b/include/utmp.h index dd23b0856..ea05b8519 100644 --- a/include/utmp.h +++ b/include/utmp.h @@ -75,7 +75,7 @@ struct utmp { char ut_host[UT_HOSTSIZE]; /* host name, when remote */ short ut_pid; /* process id */ short int ut_type; /* type of entry */ - long ut_time; /* login/logout time */ + time_t ut_time; /* login/logout time */ }; /* Definitions for ut_type. */