projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
825ae5a
)
Fix compile error, sync() always returns 0 anyway.
author
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 16 Feb 2001 10:21:35 +0000
(10:21 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Fri, 16 Feb 2001 10:21:35 +0000
(10:21 -0000)
coreutils/sync.c
patch
|
blob
|
history
sync.c
patch
|
blob
|
history
diff --git
a/coreutils/sync.c
b/coreutils/sync.c
index fc5a42b8a7fe54f7cbc091bcb9f322980e938438..3d4686efaef006ea3e4405263f8e4bbd3332ad1a 100644
(file)
--- 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);
}
diff --git
a/sync.c
b/sync.c
index fc5a42b8a7fe54f7cbc091bcb9f322980e938438..3d4686efaef006ea3e4405263f8e4bbd3332ad1a 100644
(file)
--- a/
sync.c
+++ b/
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);
}