#include "internal.h"
-
-const char sync_usage[] = "sync\n"
-"\n"
-"\tWrite all buffered filesystem blocks to disk.\n";
+#include <stdio.h>
extern int
-sync_main(struct FileInfo * i, int argc, char * * argv)
+sync_main(int argc, char * * argv)
{
- return sync();
+ if ( **(argv+1) == '-' ) {
+ usage( "sync\nWrite all buffered filesystem blocks to disk.\n");
+ }
+ return sync();
}
+