Changeset 48943dc in rtems


Ignore:
Timestamp:
Oct 10, 2011, 7:11:26 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, 5, master
Children:
e2d3e37
Parents:
87f4e9ba
Message:

2011-10-10 Ralf Corsépius <ralf.corsepius@…>

  • libfs/src/devfs/devfs_mknod.c: Remove const cast.
  • libfs/src/imfs/ioman.c: Remove const cast.
  • libfs/src/devfs/devfs.h: Make device_name a const char*.
  • sapi/include/rtems/io.h: Make device_name a const char*.
Location:
cpukit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r87f4e9ba r48943dc  
     12011-10-10      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * libfs/src/devfs/devfs_mknod.c: Remove const cast.
     4        * libfs/src/imfs/ioman.c: Remove const cast.
     5        * libfs/src/devfs/devfs.h: Make device_name a const char*.
     6        * sapi/include/rtems/io.h: Make device_name a const char*.
     7
    182011-10-10      Ralf Corsépius <ralf.corsepius@rtems.org>
    29
  • cpukit/libfs/src/devfs/devfs.h

    r87f4e9ba r48943dc  
    2222{
    2323  /** This member points to device name which is a null-terminated string */
    24   char                     *device_name;
     24  const char               *device_name;
    2525  /** This member is the name length of a device */
    2626  uint32_t                  device_name_length;
  • cpukit/libfs/src/devfs/devfs_mknod.c

    r87f4e9ba r48943dc  
    7070
    7171  _ISR_Disable(level);
    72   device_name_table[slot].device_name  = (char *)path;
     72  device_name_table[slot].device_name  = path;
    7373  device_name_table[slot].device_name_length = strlen(path);
    7474  device_name_table[slot].major = major;
  • cpukit/libfs/src/imfs/ioman.c

    r87f4e9ba r48943dc  
    8383  }
    8484
    85   device_info->device_name        = (char *) name;
     85  device_info->device_name        = name;
    8686  device_info->device_name_length = strlen( name );
    8787  device_info->major              = the_jnode->info.device.major;
  • cpukit/sapi/include/rtems/io.h

    r87f4e9ba r48943dc  
    175175
    176176typedef struct {
    177     char                     *device_name;
     177    const char               *device_name;
    178178    size_t                    device_name_length;
    179179    rtems_device_major_number major;
Note: See TracChangeset for help on using the changeset viewer.