[rtems commit] IMFS: Update IMS_assert check when RTEMS_DEBUG is enabled.

Chris Johns chrisj at rtems.org
Sat Apr 28 03:03:33 UTC 2012


Module:    rtems
Branch:    master
Commit:    3756041b00ab0f85efa015d58b76644ca0239d8e
Changeset: http://git.rtems.org/rtems/commit/?id=3756041b00ab0f85efa015d58b76644ca0239d8e

Author:    Chris Johns <chrisj at rtems.org>
Date:      Sat Apr 28 12:21:45 2012 +1000

IMFS: Update IMS_assert check when RTEMS_DEBUG is enabled.

Update the assert macro to the new IMFS_jnode_t.

---

 cpukit/libfs/src/imfs/imfs_readlink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpukit/libfs/src/imfs/imfs_readlink.c b/cpukit/libfs/src/imfs/imfs_readlink.c
index 6786806..e18e8cc 100644
--- a/cpukit/libfs/src/imfs/imfs_readlink.c
+++ b/cpukit/libfs/src/imfs/imfs_readlink.c
@@ -31,7 +31,7 @@ ssize_t IMFS_readlink(
 
   node = loc->node_access;
 
-  IMFS_assert( node->type == IMFS_SYM_LINK );
+  IMFS_assert( node->control.imfs_type == IMFS_SYM_LINK );
 
   for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
     buf[i] = node->info.sym_link.name[i];




More information about the vc mailing list