X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=sync.c;h=ee22ae109c5a222dd29a958ef375138f54e4220e;hb=deba6dea0340465af76624f9ef3a0bbe28130d8a;hp=db35d72faec2aacb8e5f1b924e4a13c5714d3454;hpb=b610615be9aedfac07d1e01f12575707fa3a227c;p=oweals%2Fbusybox.git diff --git a/sync.c b/sync.c index db35d72fa..ee22ae109 100644 --- a/sync.c +++ b/sync.c @@ -21,17 +21,15 @@ * */ -#include "internal.h" #include +#include +#include +#include "busybox.h" extern int sync_main(int argc, char **argv) { - if (argc > 1 && **(argv + 1) == '-') { - usage("sync\n" -#ifndef BB_FEATURE_TRIVIAL_HELP - "\nWrite all buffered filesystem blocks to disk.\n" -#endif - ); - } - return(sync()); + if (argc > 1 && **(argv + 1) == '-') + show_usage(); + sync(); + return(EXIT_SUCCESS); }