From a68ea1cb93c29125bc4f30ddd415fca02249e010 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 30 Jan 2006 22:48:39 +0000 Subject: fix up yet more annoying signed/unsigned and mixed type errors --- loginutils/login.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loginutils') diff --git a/loginutils/login.c b/loginutils/login.c index b2f3166e2..4d513dcb2 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -450,7 +450,7 @@ static void checkutmp(int picky) /* XXX - assumes /dev/tty?? */ strncpy(utent.ut_id, utent.ut_line + 3, sizeof utent.ut_id); strncpy(utent.ut_user, "LOGIN", sizeof utent.ut_user); - time(&utent.ut_time); + time((time_t*)&utent.ut_time); } } @@ -465,7 +465,7 @@ static void setutmp(const char *name, const char *line) { utent.ut_type = USER_PROCESS; strncpy(utent.ut_user, name, sizeof utent.ut_user); - time(&utent.ut_time); + time((time_t*)&utent.ut_time); /* other fields already filled in by checkutmp above */ setutent(); pututline(&utent); -- cgit v1.2.3