Fix some compiler warnings emitted by gcc-4.8.0
[oweals/busybox.git] / util-linux / fdformat.c
index 3831ab44e1474e89154275d8dd25e79c9f7d8dc0..b3e918fb0c74ec5ebd34ebed636bd2aa9b1db65d 100644 (file)
@@ -2,9 +2,15 @@
 /* fdformat.c  -  Low-level formats a floppy disk - Werner Almesberger
  * 5 July 2003 -- modified for Busybox by Erik Andersen
  *
- * Licensed under GPLv2, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2, see file LICENSE in this source tree.
  */
 
+//usage:#define fdformat_trivial_usage
+//usage:       "[-n] DEVICE"
+//usage:#define fdformat_full_usage "\n\n"
+//usage:       "Format floppy disk\n"
+//usage:     "\n       -n      Don't verify after format"
+
 #include "libbb.h"
 
 
@@ -36,7 +42,7 @@ struct format_descr {
        unsigned int device,head,track;
 };
 #define FDFMTBEG _IO(2,0x47)
-#define        FDFMTTRK _IOW(2,0x48, struct format_descr)
+#define FDFMTTRK _IOW(2,0x48, struct format_descr)
 #define FDFMTEND _IO(2,0x49)
 #define FDGETPRM _IOR(2, 0x04, struct floppy_struct)
 #define FD_FILL_BYTE 0xF6 /* format fill byte. */
@@ -110,7 +116,7 @@ int fdformat_main(int argc UNUSED_PARAM, char **argv)
                        /* Check backwards so we don't need a counter */
                        while (--read_bytes >= 0) {
                                if (data[read_bytes] != FD_FILL_BYTE) {
-                                        printf("bad data in cyl %d\nContinuing... ", cyl);
+                                       printf("bad data in cyl %d\nContinuing... ", cyl);
                                }
                        }
                }