Applied patch from I.Q. to add sort -u as a feature.
[oweals/busybox.git] / coreutils / sync.c
index 3737cb1f1822f86aebfb0421116bc048e3ed7fd2..ee22ae109c5a222dd29a958ef375138f54e4220e 100644 (file)
  *
  */
 
-#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);
 }