[rtems commit] IMFS: Silence warning
Sebastian Huber
sebh at rtems.org
Wed Feb 18 16:09:30 UTC 2015
Module: rtems
Branch: master
Commit: fd144302a5e5d8124cb5107ef1ba02b1502d16b1
Changeset: http://git.rtems.org/rtems/commit/?id=fd144302a5e5d8124cb5107ef1ba02b1502d16b1
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Feb 18 17:06:05 2015 +0100
IMFS: Silence warning
---
cpukit/libfs/src/imfs/imfs_initsupp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/libfs/src/imfs/imfs_initsupp.c b/cpukit/libfs/src/imfs/imfs_initsupp.c
index 2428563..5528e18 100644
--- a/cpukit/libfs/src/imfs/imfs_initsupp.c
+++ b/cpukit/libfs/src/imfs/imfs_initsupp.c
@@ -193,7 +193,7 @@ IMFS_jnode_t *IMFS_node_remove_default(
void IMFS_node_destroy_default( IMFS_jnode_t *node )
{
if ( ( node->flags & IMFS_NODE_FLAG_NAME_ALLOCATED ) != 0 ) {
- free( node->name );
+ free( RTEMS_DECONST( char *, node->name ) );
}
free( node );
More information about the vc
mailing list