diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-10 07:11:26 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-10 07:11:26 +0000 |
commit | 48943dc1958d8938a5e82c9a175d4e478672f104 (patch) | |
tree | 95a1a753d6cdb3ae99e55d81016aabb6570510df /cpukit | |
parent | 2011-10-10 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-48943dc1958d8938a5e82c9a175d4e478672f104.tar.bz2 |
2011-10-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* 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*.
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 7 | ||||
-rw-r--r-- | cpukit/libfs/src/devfs/devfs.h | 2 | ||||
-rw-r--r-- | cpukit/libfs/src/devfs/devfs_mknod.c | 2 | ||||
-rw-r--r-- | cpukit/libfs/src/imfs/ioman.c | 2 | ||||
-rw-r--r-- | cpukit/sapi/include/rtems/io.h | 2 |
5 files changed, 11 insertions, 4 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index b9a000abbd..b94f81c020 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,12 @@ 2011-10-10 Ralf Corsépius <ralf.corsepius@rtems.org> + * 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*. + +2011-10-10 Ralf Corsépius <ralf.corsepius@rtems.org> + * libcsupport/src/termios.c: Remove meaningless typecast. 2011-10-09 Ralf Corsépius <ralf.corsepius@rtems.org> diff --git a/cpukit/libfs/src/devfs/devfs.h b/cpukit/libfs/src/devfs/devfs.h index eafa069cb8..6e4f2478c7 100644 --- a/cpukit/libfs/src/devfs/devfs.h +++ b/cpukit/libfs/src/devfs/devfs.h @@ -21,7 +21,7 @@ extern "C" { typedef struct { /** This member points to device name which is a null-terminated string */ - char *device_name; + const char *device_name; /** This member is the name length of a device */ uint32_t device_name_length; /** major number of a device */ diff --git a/cpukit/libfs/src/devfs/devfs_mknod.c b/cpukit/libfs/src/devfs/devfs_mknod.c index d8e5a30d5f..4a8b8b3523 100644 --- a/cpukit/libfs/src/devfs/devfs_mknod.c +++ b/cpukit/libfs/src/devfs/devfs_mknod.c @@ -69,7 +69,7 @@ int devFS_mknod( rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); - device_name_table[slot].device_name = (char *)path; + device_name_table[slot].device_name = path; device_name_table[slot].device_name_length = strlen(path); device_name_table[slot].major = major; device_name_table[slot].minor = minor; diff --git a/cpukit/libfs/src/imfs/ioman.c b/cpukit/libfs/src/imfs/ioman.c index fa9918b266..0dce7e7239 100644 --- a/cpukit/libfs/src/imfs/ioman.c +++ b/cpukit/libfs/src/imfs/ioman.c @@ -82,7 +82,7 @@ rtems_status_code rtems_io_lookup_name( return RTEMS_UNSATISFIED; } - device_info->device_name = (char *) name; + device_info->device_name = name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; diff --git a/cpukit/sapi/include/rtems/io.h b/cpukit/sapi/include/rtems/io.h index e47d66556d..a4ffaef3b5 100644 --- a/cpukit/sapi/include/rtems/io.h +++ b/cpukit/sapi/include/rtems/io.h @@ -174,7 +174,7 @@ rtems_status_code rtems_io_control( /** @} */ typedef struct { - char *device_name; + const char *device_name; size_t device_name_length; rtems_device_major_number major; rtems_device_minor_number minor; |