]> Zhao Yanbai Git Server - minix.git/commitdiff
Changing field utmp.ut_time from int to time_t 80/180/2
authorLionel Sambuc <lionel@minix3.org>
Tue, 11 Dec 2012 17:03:26 +0000 (18:03 +0100)
committerLionel Sambuc <lionel@minix3.org>
Mon, 14 Jan 2013 10:36:27 +0000 (11:36 +0100)
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

include/utmp.h

index dd23b085611b577a0be71f8944fa98a9fe6fcf33..ea05b8519f34c606d4826ea45271930ea9fd6d03 100644 (file)
@@ -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. */