inetd: comment tweak. no code changes
[oweals/busybox.git] / coreutils / sync.c
index 8a7f182654d5e74d51f1ac2cb7b16b26b7eccaf0..f00a3d0759eceff5b3119e72c00a6ae0380a7a39 100644 (file)
@@ -9,15 +9,17 @@
 
 /* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
 
-#include <stdlib.h>
-#include <unistd.h>
-#include "busybox.h"
+#include "libbb.h"
 
-int sync_main(int argc, char **argv)
+/* This is a NOFORK applet. Be very careful! */
+
+int sync_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
+int sync_main(int argc, char **argv UNUSED_PARAM)
 {
+       /* coreutils-6.9 compat */
        bb_warn_ignoring_args(argc - 1);
 
        sync();
 
-       return(EXIT_SUCCESS);
+       return EXIT_SUCCESS;
 }