aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2001-02-16 10:21:35 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2001-02-16 10:21:35 +0000
commita9c69762badc6f3f624517e329b2349c6ec125e0 (patch)
treeaa1c07086730d29cdfddb68d67ebe18982f6caec
parent825ae5a1665c174c9255ba3abe7ec9711d165c25 (diff)
downloadbusybox-w32-a9c69762badc6f3f624517e329b2349c6ec125e0.tar.gz
busybox-w32-a9c69762badc6f3f624517e329b2349c6ec125e0.tar.bz2
busybox-w32-a9c69762badc6f3f624517e329b2349c6ec125e0.zip
Fix compile error, sync() always returns 0 anyway.
-rw-r--r--coreutils/sync.c4
-rw-r--r--sync.c4
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 @@
23 23
24#include "busybox.h" 24#include "busybox.h"
25#include <stdio.h> 25#include <stdio.h>
26#include <stdlib.h>
26#include <unistd.h> 27#include <unistd.h>
27 28
28extern int sync_main(int argc, char **argv) 29extern int sync_main(int argc, char **argv)
29{ 30{
30 if (argc > 1 && **(argv + 1) == '-') 31 if (argc > 1 && **(argv + 1) == '-')
31 show_usage(); 32 show_usage();
32 return(sync()); 33 sync();
34 return(EXIT_SUCCESS);
33} 35}
diff --git a/sync.c b/sync.c
index fc5a42b8a..3d4686efa 100644
--- a/sync.c
+++ b/sync.c
@@ -23,11 +23,13 @@
23 23
24#include "busybox.h" 24#include "busybox.h"
25#include <stdio.h> 25#include <stdio.h>
26#include <stdlib.h>
26#include <unistd.h> 27#include <unistd.h>
27 28
28extern int sync_main(int argc, char **argv) 29extern int sync_main(int argc, char **argv)
29{ 30{
30 if (argc > 1 && **(argv + 1) == '-') 31 if (argc > 1 && **(argv + 1) == '-')
31 show_usage(); 32 show_usage();
32 return(sync()); 33 sync();
34 return(EXIT_SUCCESS);
33} 35}