Modified so that it "works" for archs other than i386... arm in particular.
[oweals/busybox.git] / coreutils / sync.c
index 3737cb1f1822f86aebfb0421116bc048e3ed7fd2..d5816806569ee2d6b2968d1fc19896955ad0f9d5 100644 (file)
@@ -2,7 +2,6 @@
 /*
  * Mini sync implementation for busybox
  *
- *
  * Copyright (C) 1995, 1996 by Bruce Perens <bruce@pixar.com>.
  *
  * This program is free software; you can redistribute it and/or modify
  *
  */
 
-#include "internal.h"
 #include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include "busybox.h"
 
 extern int sync_main(int argc, char **argv)
 {
        if (argc > 1 && **(argv + 1) == '-')
-               usage(sync_usage);
-       return(sync());
+               show_usage();
+       sync();
+       return(EXIT_SUCCESS);
 }