From 77399bd6495fd9ac5520ea898a8aeaf50032feb8 Mon Sep 17 00:00:00 2001 From: Lionel Sambuc Date: Tue, 11 Dec 2012 18:03:26 +0100 Subject: [PATCH] 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 --- include/utmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */