diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-10-18 19:02:32 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-10-18 19:02:32 +0000 |
commit | b109c99699c7fc68924354ffa937b111d5896d2d (patch) | |
tree | cdba32234f059656b0279b324ae28c742692cd0c /coreutils/sync.c | |
parent | c45e09cde722eae8210c601491285aabd26307c3 (diff) | |
download | busybox-w32-b109c99699c7fc68924354ffa937b111d5896d2d.tar.gz busybox-w32-b109c99699c7fc68924354ffa937b111d5896d2d.tar.bz2 busybox-w32-b109c99699c7fc68924354ffa937b111d5896d2d.zip |
More fixes
git-svn-id: svn://busybox.net/trunk/busybox@30 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/sync.c')
-rw-r--r-- | coreutils/sync.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/coreutils/sync.c b/coreutils/sync.c index 6fa5b380b..e7aa44585 100644 --- a/coreutils/sync.c +++ b/coreutils/sync.c | |||
@@ -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 | |||