diff options
Diffstat (limited to 'sync.c')
-rw-r--r-- | sync.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,11 +1,12 @@ | |||
1 | #include "internal.h" | 1 | #include "internal.h" |
2 | 2 | ||
3 | const char sync_usage[] = "sync\n" | ||
4 | "\n" | ||
5 | "\tWrite all buffered filesystem blocks to disk.\n"; | ||
6 | |||
7 | extern int | 3 | extern int |
8 | sync_main(struct FileInfo * i, int argc, char * * argv) | 4 | sync_main(int argc, char * * argv) |
9 | { | 5 | { |
6 | if ( **(argv+1) == '-' ) { | ||
7 | fprintf(stderr, "Usage: sync\nWrite all buffered filesystem blocks to disk.\n"); | ||
8 | exit(FALSE); | ||
9 | } | ||
10 | return sync(); | 10 | return sync(); |
11 | } | 11 | } |
12 | |||