aboutsummaryrefslogtreecommitdiff
path: root/coreutils/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/sync.c')
-rw-r--r--coreutils/sync.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/coreutils/sync.c b/coreutils/sync.c
index d58168065..84746311f 100644
--- a/coreutils/sync.c
+++ b/coreutils/sync.c
@@ -20,15 +20,17 @@
20 * 20 *
21 */ 21 */
22 22
23#include <stdio.h> 23/* BB_AUDIT SUSv3 N/A -- Matches GNU behavior. */
24
24#include <stdlib.h> 25#include <stdlib.h>
25#include <unistd.h> 26#include <unistd.h>
26#include "busybox.h" 27#include "busybox.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 bb_warn_ignoring_args(argc - 1);
31 show_usage(); 32
32 sync(); 33 sync();
34
33 return(EXIT_SUCCESS); 35 return(EXIT_SUCCESS);
34} 36}