diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-22 21:56:26 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-05-22 21:56:26 +0000 |
commit | 69d5ba2f95287a59fb31583b014474859b22025b (patch) | |
tree | 5743f607901b6f3f6a9d2e4b0be06489b8cf109d /miscutils/last_fancy.c | |
parent | a959a2abdd5bef3dadcf653665831a14f404240c (diff) | |
download | busybox-w32-69d5ba2f95287a59fb31583b014474859b22025b.tar.gz busybox-w32-69d5ba2f95287a59fb31583b014474859b22025b.tar.bz2 busybox-w32-69d5ba2f95287a59fb31583b014474859b22025b.zip |
- untangle the implementation of the small and huge last applets
Diffstat (limited to 'miscutils/last_fancy.c')
-rw-r--r-- | miscutils/last_fancy.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/miscutils/last_fancy.c b/miscutils/last_fancy.c index 03df8dcdd..91315d338 100644 --- a/miscutils/last_fancy.c +++ b/miscutils/last_fancy.c | |||
@@ -7,6 +7,13 @@ | |||
7 | * Licensed under the GPLv2 or later, see the file LICENSE in this tarball. | 7 | * Licensed under the GPLv2 or later, see the file LICENSE in this tarball. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | #include "libbb.h" | ||
11 | #include <utmp.h> | ||
12 | |||
13 | #ifndef SHUTDOWN_TIME | ||
14 | # define SHUTDOWN_TIME 254 | ||
15 | #endif | ||
16 | |||
10 | #define HEADER_FORMAT "%-8.8s %-12.12s %-*.*s %-16.16s %-7.7s %s\n" | 17 | #define HEADER_FORMAT "%-8.8s %-12.12s %-*.*s %-16.16s %-7.7s %s\n" |
11 | #define HEADER_LINE "USER", "TTY", \ | 18 | #define HEADER_LINE "USER", "TTY", \ |
12 | INET_ADDRSTRLEN, INET_ADDRSTRLEN, "HOST", "LOGIN", " TIME", "" | 19 | INET_ADDRSTRLEN, INET_ADDRSTRLEN, "HOST", "LOGIN", " TIME", "" |