From a222ace72815480b0de580e8eeb1da1be689d338 Mon Sep 17 00:00:00 2001 From: bug1 Date: Fri, 16 Feb 2001 10:21:35 +0000 Subject: Fix compile error, sync() always returns 0 anyway. git-svn-id: svn://busybox.net/trunk/busybox@1831 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- coreutils/sync.c | 4 +++- 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 +#include #include 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 fc5a42b8a..3d4686efa 100644 --- a/sync.c +++ b/sync.c @@ -23,11 +23,13 @@ #include "busybox.h" #include +#include #include extern int sync_main(int argc, char **argv) { if (argc > 1 && **(argv + 1) == '-') show_usage(); - return(sync()); + sync(); + return(EXIT_SUCCESS); } -- cgit v1.2.3-55-g6feb