Fix some compiler warnings emitted by gcc-4.8.0
[oweals/busybox.git] / util-linux / fdformat.c
index f5c386c46b66fe4087bd532e359fa1598b513de2..b3e918fb0c74ec5ebd34ebed636bd2aa9b1db65d 100644 (file)
@@ -5,6 +5,12 @@
  * 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);
                                }
                        }
                }