diff options
Diffstat (limited to 'miscutils/last.c')
-rw-r--r-- | miscutils/last.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/miscutils/last.c b/miscutils/last.c index 47c18ff..6e35879 100644 --- a/miscutils/last.c +++ b/miscutils/last.c @@ -8,15 +8,7 @@ */ #include "busybox.h" -#include <sys/types.h> -#include <fcntl.h> -#include <unistd.h> -#include <stdlib.h> #include <utmp.h> -#include <sys/stat.h> -#include <errno.h> -#include <string.h> -#include <time.h> #ifndef SHUTDOWN_TIME # define SHUTDOWN_TIME 254 @@ -43,7 +35,7 @@ int last_main(int argc, char **argv) if (argc > 1) { bb_show_usage(); } - file = bb_xopen(bb_path_wtmp_file, O_RDONLY); + file = xopen(bb_path_wtmp_file, O_RDONLY); printf("%-10s %-14s %-18s %-12.12s %s\n", "USER", "TTY", "HOST", "LOGIN", "TIME"); while ((n = safe_read(file, (void*)&ut, sizeof(struct utmp))) != 0) { |