aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fdformat.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/fdformat.c')
-rw-r--r--util-linux/fdformat.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/util-linux/fdformat.c b/util-linux/fdformat.c
index c4f97ae34..eac7b15e9 100644
--- a/util-linux/fdformat.c
+++ b/util-linux/fdformat.c
@@ -41,7 +41,7 @@ struct format_descr {
41#define FD_FILL_BYTE 0xF6 /* format fill byte. */ 41#define FD_FILL_BYTE 0xF6 /* format fill byte. */
42 42
43int fdformat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 43int fdformat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
44int fdformat_main(int argc, char **argv) 44int fdformat_main(int argc ATTRIBUTE_UNUSED, char **argv)
45{ 45{
46 int fd, n, cyl, read_bytes, verify; 46 int fd, n, cyl, read_bytes, verify;
47 unsigned char *data; 47 unsigned char *data;
@@ -49,9 +49,7 @@ int fdformat_main(int argc, char **argv)
49 struct floppy_struct param; 49 struct floppy_struct param;
50 struct format_descr descr; 50 struct format_descr descr;
51 51
52 if (argc < 2) { 52 opt_complementary = "=1"; /* must have 1 param */
53 bb_show_usage();
54 }
55 verify = !getopt32(argv, "n"); 53 verify = !getopt32(argv, "n");
56 argv += optind; 54 argv += optind;
57 55