X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;ds=sidebyside;f=sync.c;h=ee22ae109c5a222dd29a958ef375138f54e4220e;hb=deba6dea0340465af76624f9ef3a0bbe28130d8a;hp=f8160c8dcb42e1fdbd1067a3668c95dadd5564d6;hpb=e49d5ecbbe51718fa925b6890a735e5937cc2aa2;p=oweals%2Fbusybox.git diff --git a/sync.c b/sync.c index f8160c8dc..ee22ae109 100644 --- a/sync.c +++ b/sync.c @@ -21,13 +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\nWrite all buffered filesystem blocks to disk.\n"); - } - exit(sync()); + if (argc > 1 && **(argv + 1) == '-') + show_usage(); + sync(); + return(EXIT_SUCCESS); }