aboutsummaryrefslogtreecommitdiff
path: root/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'sync.c')
-rw-r--r--sync.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/sync.c b/sync.c
index db35d72fa..f7c14b04c 100644
--- a/sync.c
+++ b/sync.c
@@ -24,14 +24,16 @@
24#include "internal.h" 24#include "internal.h"
25#include <stdio.h> 25#include <stdio.h>
26 26
27extern int sync_main(int argc, char **argv) 27const 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
34extern 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}