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