delete tons of extra #includes

This commit is contained in:
Denis Vlasenko
2007-05-31 22:42:12 +00:00
parent fad2b86c9e
commit 9a7d38fe24
59 changed files with 68 additions and 176 deletions

View File

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

View File

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

View File

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