diff options
author | Denis Vlasenko | 2008-05-22 02:07:58 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-05-22 02:07:58 +0000 |
commit | 869d3d318ff3c17d74499f1216abfe3afa40590c (patch) | |
tree | f76f5abd31348c95c73d9455fef5f3fb38291686 /miscutils/last.c | |
parent | 7bd8d8fd264a72f9c228da3ca238eae1b2ad8ce1 (diff) | |
download | busybox-869d3d318ff3c17d74499f1216abfe3afa40590c.zip busybox-869d3d318ff3c17d74499f1216abfe3afa40590c.tar.gz |
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 749862c..ef41444 100644 --- a/miscutils/last.c +++ b/miscutils/last.c @@ -26,6 +26,12 @@ #error struct utmp member char[] size(s) have changed! #endif +#if ENABLE_FEATURE_LAST_FANCY + +#include "last_fancy.c" + +#else + int last_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int last_main(int argc, char **argv ATTRIBUTE_UNUSED) { @@ -92,3 +98,5 @@ int last_main(int argc, char **argv ATTRIBUTE_UNUSED) fflush_stdout_and_exit(EXIT_SUCCESS); } + +#endif |