Fix compile error, sync() always returns 0 anyway.
This commit is contained in:
parent
825ae5a166
commit
a9c69762ba
@ -23,11 +23,13 @@
|
|||||||
|
|
||||||
#include "busybox.h"
|
#include "busybox.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
extern int sync_main(int argc, char **argv)
|
extern int sync_main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
if (argc > 1 && **(argv + 1) == '-')
|
if (argc > 1 && **(argv + 1) == '-')
|
||||||
show_usage();
|
show_usage();
|
||||||
return(sync());
|
sync();
|
||||||
|
return(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
4
sync.c
4
sync.c
@ -23,11 +23,13 @@
|
|||||||
|
|
||||||
#include "busybox.h"
|
#include "busybox.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
extern int sync_main(int argc, char **argv)
|
extern int sync_main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
if (argc > 1 && **(argv + 1) == '-')
|
if (argc > 1 && **(argv + 1) == '-')
|
||||||
show_usage();
|
show_usage();
|
||||||
return(sync());
|
sync();
|
||||||
|
return(EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user