X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=ps.c;h=4ce43c47f9f0242d55d57fcb79f41c2776f2f7bb;hb=4949faf4b2090ca23c2aeb34535fdbe57754913a;hp=4ff7a8a58cab7b47137a4f8900f2c0dc76f877d1;hpb=dd19c6990496023fe23fefef8f1798740f7d39c6;p=oweals%2Fbusybox.git diff --git a/ps.c b/ps.c index 4ff7a8a58..4ce43c47f 100644 --- a/ps.c +++ b/ps.c @@ -28,7 +28,6 @@ * */ -#include "busybox.h" #include #include #include @@ -38,6 +37,7 @@ #include #include #include +#include "busybox.h" #define BB_DECLARE_EXTERN #define bb_need_help #include "messages.c" @@ -52,10 +52,6 @@ static const int TERMINAL_WIDTH = 79; /* not 80 in case terminal has linefo * the one using the /proc virtual filesystem. */ -#if ! defined BB_FEATURE_USE_PROCFS -#error Sorry, I depend on the /proc filesystem right now. -#endif - typedef struct proc_s { char cmd[16]; /* basename of executable file in call to exec(2) */ @@ -211,7 +207,7 @@ extern int ps_main(int argc, char **argv) #endif if (argc > 1 && **(argv + 1) == '-') - usage(ps_usage); + show_usage(); /* open device */ fd = open(device, O_RDONLY);