aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2006-01-30 22:33:31 +0000
committerEric Andersen <andersen@codepoet.org>2006-01-30 22:33:31 +0000
commit9a58b02ec75caafb7214f1ad0317f9a4830cbd2a (patch)
tree4f35ecedae6b2cc7897fde7589e2f29efe56fc1d /miscutils
parent0cb6f35c33a2a3fd390aaa36da72e0600f205918 (diff)
downloadbusybox-9a58b02ec75caafb7214f1ad0317f9a4830cbd2a.tar.gz
make certain we dereference the pointer as a time_t, esp on x86_64
where it might otherwise not be dereferenced as such by default
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/last.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/last.c b/miscutils/last.c
index 86613bf27..d7ce5e775 100644
--- a/miscutils/last.c
+++ b/miscutils/last.c
@@ -100,7 +100,7 @@ extern int last_main(int argc, char **argv)
}
printf("%-10s %-14s %-18s %-12.12s\n", ut.ut_user, ut.ut_line, ut.ut_host,
- ctime(&(ut.ut_tv.tv_sec)) + 4);
+ ctime((time_t *)&(ut.ut_tv.tv_sec)) + 4);
}
bb_fflush_stdout_and_exit(EXIT_SUCCESS);