diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-22 02:07:58 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-22 02:07:58 +0000 |
commit | 869d3d318ff3c17d74499f1216abfe3afa40590c (patch) | |
tree | f76f5abd31348c95c73d9455fef5f3fb38291686 /miscutils/last.c | |
parent | 7bd8d8fd264a72f9c228da3ca238eae1b2ad8ce1 (diff) | |
download | busybox-w32-869d3d318ff3c17d74499f1216abfe3afa40590c.tar.gz busybox-w32-869d3d318ff3c17d74499f1216abfe3afa40590c.tar.bz2 busybox-w32-869d3d318ff3c17d74499f1216abfe3afa40590c.zip |
last: optional alternative sysv-like implementation
(by Patricia Muscalu <patricia.muscalu AT axis.com>)
function old new delta
last_main 448 917 +469
show_entry - 319 +319
packed_usage 24216 24268 +52
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 2/0 up/down: 840/0) Total: 840 bytes
Diffstat (limited to 'miscutils/last.c')
-rw-r--r-- | miscutils/last.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/miscutils/last.c b/miscutils/last.c index 749862c35..ef41444c5 100644 --- a/miscutils/last.c +++ b/miscutils/last.c | |||
@@ -26,6 +26,12 @@ | |||
26 | #error struct utmp member char[] size(s) have changed! | 26 | #error struct utmp member char[] size(s) have changed! |
27 | #endif | 27 | #endif |
28 | 28 | ||
29 | #if ENABLE_FEATURE_LAST_FANCY | ||
30 | |||
31 | #include "last_fancy.c" | ||
32 | |||
33 | #else | ||
34 | |||
29 | int last_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 35 | int last_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
30 | int last_main(int argc, char **argv ATTRIBUTE_UNUSED) | 36 | int last_main(int argc, char **argv ATTRIBUTE_UNUSED) |
31 | { | 37 | { |
@@ -92,3 +98,5 @@ int last_main(int argc, char **argv ATTRIBUTE_UNUSED) | |||
92 | 98 | ||
93 | fflush_stdout_and_exit(EXIT_SUCCESS); | 99 | fflush_stdout_and_exit(EXIT_SUCCESS); |
94 | } | 100 | } |
101 | |||
102 | #endif | ||