summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs/imfs_ntype.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2012-02-24 16:40:19 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2012-03-13 12:24:16 +0100
commit70927458b7d9b8579cb98782423a8afac4fa624e (patch)
tree44d7b94c8f0629b271d44b82f10cf62fa54a80ae /cpukit/libfs/src/imfs/imfs_ntype.c
parentIMFS: Removed superfluous imfs_dir_open() (diff)
downloadrtems-70927458b7d9b8579cb98782423a8afac4fa624e.tar.bz2
IMFS: New support functions
Add and use IMFS_type() and IMFS_is_directory().
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_ntype.c')
-rw-r--r--cpukit/libfs/src/imfs/imfs_ntype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_ntype.c b/cpukit/libfs/src/imfs/imfs_ntype.c
index f399707c0c..fa9a37dd6e 100644
--- a/cpukit/libfs/src/imfs/imfs_ntype.c
+++ b/cpukit/libfs/src/imfs/imfs_ntype.c
@@ -28,12 +28,12 @@ rtems_filesystem_node_types_t IMFS_node_type(
)
{
const IMFS_jnode_t *node = loc->node_access;
- IMFS_jnode_types_t imfs_type = node->type;
+ IMFS_jnode_types_t imfs_type = IMFS_type( node );
rtems_filesystem_node_types_t type;
switch ( imfs_type ) {
case IMFS_HARD_LINK:
- type = node->info.hard_link.link_node->type;
+ type = IMFS_type( node->info.hard_link.link_node );
break;
case IMFS_LINEAR_FILE:
type = RTEMS_FILESYSTEM_MEMORY_FILE;