Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (9 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/util-linux/fdformat.c

    r1765 r2725  
    11/* vi: set sw=4 ts=4: */
    2 /* fdformat.c  -  Low-level formats a floppy disk - Werner Almesberger */
    3 
    4 /* 1999-02-22 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL>
    5  * - added Native Language Support
    6  * 1999-03-20 Arnaldo Carvalho de Melo <acme@conectiva.com.br>
    7  * - more i18n/nls translatable strings marked
     2/* fdformat.c  -  Low-level formats a floppy disk - Werner Almesberger
     3 * 5 July 2003 -- modified for Busybox by Erik Andersen
    84 *
    9  * 5 July 2003 -- modified for Busybox by Erik Andersen
     5 * Licensed under GPLv2, see file LICENSE in this source tree.
    106 */
    117
     
    4137};
    4238#define FDFMTBEG _IO(2,0x47)
    43 #define FDFMTTRK _IOW(2,0x48, struct format_descr)
     39#define FDFMTTRK _IOW(2,0x48, struct format_descr)
    4440#define FDFMTEND _IO(2,0x49)
    4541#define FDGETPRM _IOR(2, 0x04, struct floppy_struct)
    4642#define FD_FILL_BYTE 0xF6 /* format fill byte. */
    4743
    48 int fdformat_main(int argc,char **argv);
    49 int fdformat_main(int argc,char **argv)
     44int fdformat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
     45int fdformat_main(int argc UNUSED_PARAM, char **argv)
    5046{
    5147    int fd, n, cyl, read_bytes, verify;
     
    5551    struct format_descr descr;
    5652
    57     if (argc < 2) {
    58         bb_show_usage();
    59     }
     53    opt_complementary = "=1"; /* must have 1 param */
    6054    verify = !getopt32(argv, "n");
    6155    argv += optind;
     
    117111            while (--read_bytes >= 0) {
    118112                if (data[read_bytes] != FD_FILL_BYTE) {
    119                      printf("bad data in cyl %d\nContinuing... ",cyl);
     113                     printf("bad data in cyl %d\nContinuing... ", cyl);
    120114                }
    121115            }
Note: See TracChangeset for help on using the changeset viewer.