Changeset c54764f9 in rtems for c/src/libchip/ide/ata.c


Ignore:
Timestamp:
Apr 15, 2003, 1:03:45 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
40544fd1
Parents:
046506c0
Message:

2003-04-15 Joel Sherrill <joel@…>

PR 387/rtems_misc

  • ide/ata.c: Removed warning and moved to use of simpler libc routines.
  • ide/ata_internal.h: Added missing newline and end of file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/ide/ata.c

    r046506c0 rc54764f9  
    11861186            ata_devs[ata_devs_number].device = dev;
    11871187
    1188             snprintf(name, ATA_MAX_NAME_LENGTH, "/dev/hd%c",
    1189                      'a' + 2 * ctrl_minor + dev);
     1188            /* The space leaves a hole for the character. */
     1189            strcpy(name, "/dev/hd ");
     1190            name[7] = 'a' + 2 * ctrl_minor + dev;
     1191
    11901192            device = rtems_filesystem_make_dev_t(
    11911193                         major,
     
    13151317    }
    13161318}
     1319
Note: See TracChangeset for help on using the changeset viewer.