delete tons of extra #includes
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
|
||||
*/
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sched.h>
|
||||
#include <getopt.h> /* optind */
|
||||
#include "libbb.h"
|
||||
|
||||
@@ -54,15 +54,15 @@
|
||||
Richard Gooch, c/o ATNF, P. O. Box 76, Epping, N.S.W., 2121, Australia.
|
||||
*/
|
||||
|
||||
#include "libbb.h"
|
||||
#include "xregex.h"
|
||||
#include <sys/wait.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
//#include <sys/wait.h>
|
||||
//#include <sys/ioctl.h>
|
||||
//#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <dirent.h>
|
||||
#include <syslog.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include "libbb.h"
|
||||
#include "xregex.h"
|
||||
|
||||
|
||||
/* Various defines taken from linux/major.h */
|
||||
|
||||
@@ -12,11 +12,8 @@
|
||||
* initially busyboxified by Bernhard Fischer
|
||||
*/
|
||||
|
||||
#include "libbb.h"
|
||||
#include <stdio.h>
|
||||
#include <utmp.h>
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
#include "libbb.h"
|
||||
|
||||
int runlevel_main(int argc, char **argv);
|
||||
int runlevel_main(int argc, char **argv)
|
||||
@@ -32,12 +29,15 @@ int runlevel_main(int argc, char **argv)
|
||||
prev = ut->ut_pid / 256;
|
||||
if (prev == 0) prev = 'N';
|
||||
printf("%c %c\n", prev, ut->ut_pid % 256);
|
||||
endutent();
|
||||
if (ENABLE_FEATURE_CLEAN_UP)
|
||||
endutent();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
puts("unknown");
|
||||
endutent();
|
||||
|
||||
if (ENABLE_FEATURE_CLEAN_UP)
|
||||
endutent();
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user