Fixed tiny typo.
[oweals/busybox.git] / sync.c
diff --git a/sync.c b/sync.c
index 33c79228d7108f5398aee9492cd9824f8dccd3ce..8f101cf17a219efbe10a4c980ac6d74dd3daf17c 100644 (file)
--- a/sync.c
+++ b/sync.c
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.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
-                               );
-       }
-       exit(sync());
+       if (argc > 1 && **(argv + 1) == '-')
+               usage(sync_usage);
+       return(sync());
 }