From 70927458b7d9b8579cb98782423a8afac4fa624e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 24 Feb 2012 16:40:19 +0100 Subject: IMFS: New support functions Add and use IMFS_type() and IMFS_is_directory(). --- cpukit/libfs/src/imfs/imfs_ntype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libfs/src/imfs/imfs_ntype.c') 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; -- cgit v1.2.3