Fix compile error, sync() always returns 0 anyway.
authorGlenn L McGrath <bug1@ihug.co.nz>
Fri, 16 Feb 2001 10:21:35 +0000 (10:21 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Fri, 16 Feb 2001 10:21:35 +0000 (10:21 -0000)
coreutils/sync.c
sync.c

index fc5a42b8a7fe54f7cbc091bcb9f322980e938438..3d4686efaef006ea3e4405263f8e4bbd3332ad1a 100644 (file)
 
 #include "busybox.h"
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 
 extern int sync_main(int argc, char **argv)
 {
        if (argc > 1 && **(argv + 1) == '-')
                show_usage();
-       return(sync());
+       sync();
+       return(EXIT_SUCCESS);
 }
diff --git a/sync.c b/sync.c
index fc5a42b8a7fe54f7cbc091bcb9f322980e938438..3d4686efaef006ea3e4405263f8e4bbd3332ad1a 100644 (file)
--- a/sync.c
+++ b/sync.c
 
 #include "busybox.h"
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 
 extern int sync_main(int argc, char **argv)
 {
        if (argc > 1 && **(argv + 1) == '-')
                show_usage();
-       return(sync());
+       sync();
+       return(EXIT_SUCCESS);
 }