X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=uname.c;h=2781b80b3c82a5962b3b93b423bdf07d3db15ce7;hb=46f44d24fcc25a5d6e13e0453485881bdf147e91;hp=f1304925db845ac2aea80522b72d6dec6f700793;hpb=91e581fa0438b39ceb0ffb4ddcb90ee4d260ae81;p=oweals%2Fbusybox.git diff --git a/uname.c b/uname.c index f1304925d..2781b80b3 100644 --- a/uname.c +++ b/uname.c @@ -31,7 +31,7 @@ /* Busyboxed by Erik Andersen */ -#include "internal.h" +#include "busybox.h" #include #include #include @@ -40,24 +40,6 @@ # include #endif - -static const char uname_usage[] = - "uname [OPTION]...\n\n" -#ifndef BB_FEATURE_TRIVIAL_HELP - "Print certain system information. With no OPTION, same as -s.\n\n" - "Options:\n" - "\t-a\tprint all information\n" - "\t-m\tthe machine (hardware) type\n" - "\t-n\tprint the machine's network node hostname\n" - "\t-r\tprint the operating system release\n" - "\t-s\tprint the operating system name\n" - - "\t-p\tprint the host processor type\n" - "\t-v\tprint the operating system version\n" -#endif - ; - - static void print_element(unsigned int mask, char *element); /* Values that are bitwise or'd into `toprint'. */ @@ -156,7 +138,7 @@ int uname_main(int argc, char **argv) print_element(PRINT_MACHINE, name.machine); print_element(PRINT_PROCESSOR, processor); - exit(TRUE); + return EXIT_SUCCESS; } /* If the name element set in MASK is selected for printing in `toprint',