Fix compile error, sync() always returns 0 anyway.

This commit is contained in:
Glenn L McGrath 2001-02-16 10:21:35 +00:00
parent 825ae5a166
commit a9c69762ba
2 changed files with 6 additions and 2 deletions

View File

@ -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);
}

4
sync.c
View File

@ -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);
}