Credited Christophe Boyaniqu for interactive patch to rm.
[oweals/busybox.git] / fdflush.c
index 5eb93ddd7d7aa44494e9fb8bd17051b2b71c14f3..28f5cb68a02244da47ab04a0073e9d6aff2c317b 100644 (file)
--- a/fdflush.c
+++ b/fdflush.c
  *
  */
 
-#include "busybox.h"
 #include <stdio.h>
 #include <sys/ioctl.h>
 #include <fcntl.h>
+#include <stdlib.h>
+#include "busybox.h"
 
 /* From <linux/fd.h> */
 #define FDFLUSH  _IO(2,0x4b)
@@ -34,7 +35,7 @@ extern int fdflush_main(int argc, char **argv)
        int fd;
 
        if (argc <= 1 || **(++argv) == '-')
-               usage(fdflush_usage);
+               show_usage();
 
        if ((fd = open(*argv, 0)) < 0)
                perror_msg_and_die("%s", *argv);