OSDN Git Service
(root)
/
android-x86
/
external-busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc5e806
)
whitespace fix
author
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 9 Jul 2008 22:04:37 +0000
(22:04 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Wed, 9 Jul 2008 22:04:37 +0000
(22:04 -0000)
miscutils/last_fancy.c
patch
|
blob
|
history
diff --git
a/miscutils/last_fancy.c
b/miscutils/last_fancy.c
index
b4ae574
..
f3ea037
100644
(file)
--- a/
miscutils/last_fancy.c
+++ b/
miscutils/last_fancy.c
@@
-52,7
+52,7
@@
static void show_entry(struct utmp *ut, int state, time_t dur_secs)
/* manpages say ut_tv.tv_sec *is* time_t,
* but some systems have it wrong */
-
tmp = ut->ut_tv.tv_sec;
+ tmp = ut->ut_tv.tv_sec;
safe_strncpy(login_time, ctime(&tmp), 17);
snprintf(logout_time, 8, "- %s", ctime(&dur_secs) + 11);