X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=coreutils%2Fprintf.c;h=003423d5615b9a7976db7858c9123b32b8dd40c4;hb=eba8ed71f08f334bc94ac8eeedcd998fcdd05897;hp=832ca13d64c3460448722b19f0f34615f01bbd57;hpb=3570a34de46b1f7dedd16999bb1687e2d6b55d40;p=oweals%2Fbusybox.git diff --git a/coreutils/printf.c b/coreutils/printf.c index 832ca13d6..003423d56 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c @@ -47,7 +47,6 @@ // 19990508 Busy Boxed! Dave Cinege -#include "busybox.h" #include #include #include @@ -56,10 +55,11 @@ #include #include #include +#include "busybox.h" #ifndef S_IFMT -# define S_IFMT 0170000 +static const int S_IFMT = 0170000; #endif #if !defined(S_ISBLK) && defined(S_IFBLK) # define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) @@ -143,7 +143,7 @@ int printf_main(int argc, char **argv) exit_status = 0; if (argc <= 1 || **(argv + 1) == '-') { - usage(printf_usage); + show_usage(); } format = argv[1];