diff options
author | Ed Schouten <ed@80386.nl> | 2011-06-26 09:51:01 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-06-26 09:30:31 -0700 |
commit | 38dd87854f106f6d7a3c8bd8916b65c0d1a87697 (patch) | |
tree | da4a59d1ac9d2cda7166a90421ec75f392467dae /sessreg.c | |
parent | 6675a07badfb688aacbd8fd12ba55e16854ba0ab (diff) |
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 <ed@80386.nl>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'sessreg.c')
-rw-r--r-- | sessreg.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -78,16 +78,15 @@ # include <stdlib.h> #include <time.h> -#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"; |