From bed30e97005aca748a44806399c646633038daa8 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 18 Oct 1999 19:02:32 +0000 Subject: More fixes --- coreutils/sync.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'coreutils/sync.c') 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 @@ #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(); } + -- cgit v1.2.3