+ grep -v # yay!
[oweals/busybox.git] / util-linux / fdflush.c
index 0b154c8a605fefc13577ff4668a3a8257675f32d..56ea2244d7444189fb2b13c16325c608268a695e 100644 (file)
@@ -33,8 +33,8 @@ extern int fdflush_main(int argc, char **argv)
        int value;
        int fd;
 
-       if (argc <= 1 || **(argv++) == '-') {
-               usage("fdflush device\n");
+       if (argc <= 1 || **(++argv) == '-') {
+               usage("fdflush device\n\nForce floppy disk drive to detect disk change\n");
        }
 
        fd = open(*argv, 0);
@@ -44,7 +44,9 @@ extern int fdflush_main(int argc, char **argv)
        }
 
        value = ioctl(fd, FDFLUSH, 0);
-       close(fd);
+       /* Don't bother closing.  Exit does
+        * that, so we can save a few bytes */
+       /* close(fd); */
 
        if (value) {
                perror(*argv);