aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-01-30 22:48:39 +0000
committerEric Andersen <andersen@codepoet.org>2006-01-30 22:48:39 +0000
commita68ea1cb93c29125bc4f30ddd415fca02249e010 (patch)
tree5741be315758b807145c24da9ff3a1dbf8fce4e8 /loginutils
parent9a58b02ec75caafb7214f1ad0317f9a4830cbd2a (diff)
downloadbusybox-w32-a68ea1cb93c29125bc4f30ddd415fca02249e010.tar.gz
busybox-w32-a68ea1cb93c29125bc4f30ddd415fca02249e010.tar.bz2
busybox-w32-a68ea1cb93c29125bc4f30ddd415fca02249e010.zip
fix up yet more annoying signed/unsigned and mixed type errors
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/login.c4
1 files changed, 2 insertions, 2 deletions
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)
450 /* XXX - assumes /dev/tty?? */ 450 /* XXX - assumes /dev/tty?? */
451 strncpy(utent.ut_id, utent.ut_line + 3, sizeof utent.ut_id); 451 strncpy(utent.ut_id, utent.ut_line + 3, sizeof utent.ut_id);
452 strncpy(utent.ut_user, "LOGIN", sizeof utent.ut_user); 452 strncpy(utent.ut_user, "LOGIN", sizeof utent.ut_user);
453 time(&utent.ut_time); 453 time((time_t*)&utent.ut_time);
454 } 454 }
455} 455}
456 456
@@ -465,7 +465,7 @@ static void setutmp(const char *name, const char *line)
465{ 465{
466 utent.ut_type = USER_PROCESS; 466 utent.ut_type = USER_PROCESS;
467 strncpy(utent.ut_user, name, sizeof utent.ut_user); 467 strncpy(utent.ut_user, name, sizeof utent.ut_user);
468 time(&utent.ut_time); 468 time((time_t*)&utent.ut_time);
469 /* other fields already filled in by checkutmp above */ 469 /* other fields already filled in by checkutmp above */
470 setutent(); 470 setutent();
471 pututline(&utent); 471 pututline(&utent);