More stuff
[oweals/busybox.git] / sync.c
diff --git a/sync.c b/sync.c
index 6fa5b380b75fb753fea573296ac89efc47587a40..8800f2e762bbb6b093c84832e1cc5a974826f915 100644 (file)
--- a/sync.c
+++ b/sync.c
@@ -1,11 +1,12 @@
 #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();
 }
+