From d921b2ecc0d294ad4bf8c7458fc52a60c28727d2 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 3 Aug 2006 15:41:12 +0000 Subject: Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.) --- miscutils/last.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'miscutils/last.c') 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 -#include -#include -#include #include -#include -#include -#include -#include #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) { -- cgit v1.1