diff options
author | Eric Andersen | 1999-10-18 19:02:32 +0000 |
---|---|---|
committer | Eric Andersen | 1999-10-18 19:02:32 +0000 |
commit | bed30e97005aca748a44806399c646633038daa8 (patch) | |
tree | cdba32234f059656b0279b324ae28c742692cd0c /sync.c | |
parent | 9b5871888989b16f94cbba5dd304ac444def3afd (diff) | |
download | busybox-bed30e97005aca748a44806399c646633038daa8.zip busybox-bed30e97005aca748a44806399c646633038daa8.tar.gz |
More fixes
Diffstat (limited to 'sync.c')
-rw-r--r-- | sync.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,11 +1,12 @@ #include "internal.h" -const char sync_usage[] = "sync\n" -"\n" -"\tWrite all buffered filesystem blocks to disk.\n"; - extern int -sync_main(struct FileInfo * i, int argc, char * * argv) +sync_main(int argc, char * * argv) { + if ( **(argv+1) == '-' ) { + fprintf(stderr, "Usage: sync\nWrite all buffered filesystem blocks to disk.\n"); + exit(FALSE); + } return sync(); } + |