diff options
Diffstat (limited to 'sync.c')
-rw-r--r-- | sync.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -24,14 +24,16 @@ | |||
24 | #include "internal.h" | 24 | #include "internal.h" |
25 | #include <stdio.h> | 25 | #include <stdio.h> |
26 | 26 | ||
27 | extern int sync_main(int argc, char **argv) | 27 | const char sync_usage[] = |
28 | { | 28 | "sync\n" |
29 | if (argc > 1 && **(argv + 1) == '-') { | ||
30 | usage("sync\n" | ||
31 | #ifndef BB_FEATURE_TRIVIAL_HELP | 29 | #ifndef BB_FEATURE_TRIVIAL_HELP |
32 | "\nWrite all buffered filesystem blocks to disk.\n" | 30 | "\nWrite all buffered filesystem blocks to disk.\n" |
33 | #endif | 31 | #endif |
34 | ); | 32 | ; |
35 | } | 33 | |
34 | extern int sync_main(int argc, char **argv) | ||
35 | { | ||
36 | if (argc > 1 && **(argv + 1) == '-') | ||
37 | usage(sync_usage); | ||
36 | return(sync()); | 38 | return(sync()); |
37 | } | 39 | } |