summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/devfs
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libfs/src/devfs')
-rw-r--r--cpukit/libfs/src/devfs/devfs.h2
-rw-r--r--cpukit/libfs/src/devfs/devfs_mknod.c2
2 files changed, 2 insertions, 2 deletions
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;