[rtems commit] IMFS: Fix warning
Sebastian Huber
sebh at rtems.org
Thu Mar 5 10:35:54 UTC 2015
Module: rtems
Branch: master
Commit: 2c8843882d5fd5d63774377663e20803469cfe36
Changeset: http://git.rtems.org/rtems/commit/?id=2c8843882d5fd5d63774377663e20803469cfe36
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Mar 5 10:26:22 2015 +0100
IMFS: Fix warning
---
cpukit/libfs/src/imfs/imfs_rename.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/libfs/src/imfs/imfs_rename.c b/cpukit/libfs/src/imfs/imfs_rename.c
index 72928b9..2304d93 100644
--- a/cpukit/libfs/src/imfs/imfs_rename.c
+++ b/cpukit/libfs/src/imfs/imfs_rename.c
@@ -56,7 +56,7 @@ int IMFS_rename(
memcpy( allocated_name, name, namelen );
if ( ( node->flags & IMFS_NODE_FLAG_NAME_ALLOCATED ) != 0 ) {
- free( node->name );
+ free( RTEMS_DECONST( char *, node->name ) );
}
node->name = allocated_name;
More information about the vc
mailing list