summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Schouten <ed@80386.nl>2011-06-26 09:51:01 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-06-26 09:30:31 -0700
commit38dd87854f106f6d7a3c8bd8916b65c0d1a87697 (patch)
treeda4a59d1ac9d2cda7166a90421ec75f392467dae
parent6675a07badfb688aacbd8fd12ba55e16854ba0ab (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>
-rw-r--r--sessreg.c11
1 files 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 <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";