projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This is vodz' latest patch. Sorry it took so long...
[oweals/busybox.git]
/
watchdog.c
diff --git
a/watchdog.c
b/watchdog.c
index d297afa02bdecbfb1ffd89305d62c0bf75473a8e..f0b0ebd0ef12092cc48e509b3273391cd87a7d99 100644
(file)
--- a/
watchdog.c
+++ b/
watchdog.c
@@
-20,16
+20,20
@@
*
*/
*
*/
-#include "busybox.h"
+/* getopt not needed */
+
#include <stdio.h>
#include <fcntl.h>
#include <stdio.h>
#include <fcntl.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include "busybox.h"
extern int watchdog_main(int argc, char **argv)
{
int fd;
if (argc != 2) {
extern int watchdog_main(int argc, char **argv)
{
int fd;
if (argc != 2) {
-
usage(watchdog_usage
);
+
show_usage(
);
}
if ((fd=open(argv[1], O_WRONLY)) == -1) {
}
if ((fd=open(argv[1], O_WRONLY)) == -1) {