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
This commit is contained in:
Denis Vlasenko
2008-05-22 02:07:58 +00:00
parent 7bd8d8fd26
commit 869d3d318f
4 changed files with 307 additions and 2 deletions

View File

@ -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