diff options
Diffstat (limited to 'util-linux/fdformat.c')
-rw-r--r-- | util-linux/fdformat.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/util-linux/fdformat.c b/util-linux/fdformat.c index dc45e23c0..c4f97ae34 100644 --- a/util-linux/fdformat.c +++ b/util-linux/fdformat.c | |||
@@ -1,12 +1,7 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* fdformat.c - Low-level formats a floppy disk - Werner Almesberger */ | 2 | /* fdformat.c - Low-level formats a floppy disk - Werner Almesberger */ |
3 | 3 | ||
4 | /* 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> | 4 | /* 5 July 2003 -- modified for Busybox by Erik Andersen |
5 | * - added Native Language Support | ||
6 | * 1999-03-20 Arnaldo Carvalho de Melo <acme@conectiva.com.br> | ||
7 | * - more i18n/nls translatable strings marked | ||
8 | * | ||
9 | * 5 July 2003 -- modified for Busybox by Erik Andersen | ||
10 | */ | 5 | */ |
11 | 6 | ||
12 | #include "libbb.h" | 7 | #include "libbb.h" |
@@ -45,8 +40,8 @@ struct format_descr { | |||
45 | #define FDGETPRM _IOR(2, 0x04, struct floppy_struct) | 40 | #define FDGETPRM _IOR(2, 0x04, struct floppy_struct) |
46 | #define FD_FILL_BYTE 0xF6 /* format fill byte. */ | 41 | #define FD_FILL_BYTE 0xF6 /* format fill byte. */ |
47 | 42 | ||
48 | int fdformat_main(int argc,char **argv); | 43 | int fdformat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
49 | int fdformat_main(int argc,char **argv) | 44 | int fdformat_main(int argc, char **argv) |
50 | { | 45 | { |
51 | int fd, n, cyl, read_bytes, verify; | 46 | int fd, n, cyl, read_bytes, verify; |
52 | unsigned char *data; | 47 | unsigned char *data; |
@@ -116,7 +111,7 @@ int fdformat_main(int argc,char **argv) | |||
116 | /* Check backwards so we don't need a counter */ | 111 | /* Check backwards so we don't need a counter */ |
117 | while (--read_bytes >= 0) { | 112 | while (--read_bytes >= 0) { |
118 | if (data[read_bytes] != FD_FILL_BYTE) { | 113 | if (data[read_bytes] != FD_FILL_BYTE) { |
119 | printf("bad data in cyl %d\nContinuing... ",cyl); | 114 | printf("bad data in cyl %d\nContinuing... ", cyl); |
120 | } | 115 | } |
121 | } | 116 | } |
122 | } | 117 | } |