diff options
author | Denis Vlasenko | 2007-05-31 22:42:12 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-05-31 22:42:12 +0000 |
commit | 9a7d38fe2448617df98ecaea7dbe6f3131088586 (patch) | |
tree | 5966d651dcb5588e24106791f9cd3647f358112b /miscutils/runlevel.c | |
parent | fad2b86c9e7eaadb973b50a1bc0e2accc1a96cfd (diff) | |
download | busybox-9a7d38fe2448617df98ecaea7dbe6f3131088586.zip busybox-9a7d38fe2448617df98ecaea7dbe6f3131088586.tar.gz |
delete tons of extra #includes
Diffstat (limited to 'miscutils/runlevel.c')
-rw-r--r-- | miscutils/runlevel.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/miscutils/runlevel.c b/miscutils/runlevel.c index f7d55de..0aabfb0 100644 --- a/miscutils/runlevel.c +++ b/miscutils/runlevel.c @@ -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; } |