diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-02-16 10:21:35 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-02-16 10:21:35 +0000 |
commit | a9c69762badc6f3f624517e329b2349c6ec125e0 (patch) | |
tree | aa1c07086730d29cdfddb68d67ebe18982f6caec | |
parent | 825ae5a1665c174c9255ba3abe7ec9711d165c25 (diff) | |
download | busybox-a9c69762badc6f3f624517e329b2349c6ec125e0.tar.gz |
Fix compile error, sync() always returns 0 anyway.
-rw-r--r-- | coreutils/sync.c | 4 | ||||
-rw-r--r-- | sync.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/coreutils/sync.c b/coreutils/sync.c index fc5a42b8a..3d4686efa 100644 --- a/coreutils/sync.c +++ b/coreutils/sync.c @@ -23,11 +23,13 @@ #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); } @@ -23,11 +23,13 @@ #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); } |