From 38dd87854f106f6d7a3c8bd8916b65c0d1a87697 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sun, 26 Jun 2011 09:51:01 +0200 Subject: Just use time_t directly. There is no use for this #define (anymore). We can already assume that any decent system has time_t defined. It has to, otherwise struct utmp and struct utmpx can't even be defined. Signed-off-by: Ed Schouten Signed-off-by: Alan Coopersmith --- sessreg.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sessreg.c b/sessreg.c index 671f257..7aad1b6 100644 --- a/sessreg.c +++ b/sessreg.c @@ -78,16 +78,15 @@ # include #include -#define Time_t time_t #ifdef USE_UTMP static void set_utmp (struct utmp *u, char *line, char *user, char *host, - Time_t date, int addp); + time_t date, int addp); #endif #ifdef USE_UTMPX static void set_utmpx (struct utmpx *u, const char *line, const char *user, - const char *host, Time_t date, int addp); + const char *host, time_t date, int addp); #endif static int wflag, uflag, lflag; @@ -188,7 +187,7 @@ main (int argc, char **argv) #ifndef USE_UTMPX int wtmp; #endif - Time_t current_time; + time_t current_time; #ifdef USE_UTMP struct utmp utmp_entry; #endif @@ -385,7 +384,7 @@ main (int argc, char **argv) #ifdef USE_UTMP static void -set_utmp (struct utmp *u, char *line, char *user, char *host, Time_t date, int addp) +set_utmp (struct utmp *u, char *line, char *user, char *host, time_t date, int addp) { memset (u, 0, sizeof (*u)); if (line) @@ -462,7 +461,7 @@ UtmpxIdOpen( char *utmpId ) static void set_utmpx (struct utmpx *u, const char *line, const char *user, - const char *host, Time_t date, int addp) + const char *host, time_t date, int addp) { static const char letters[] = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; -- cgit v1.2.3