diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-02-24 16:40:19 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-03-13 12:24:16 +0100 |
commit | 70927458b7d9b8579cb98782423a8afac4fa624e (patch) | |
tree | 44d7b94c8f0629b271d44b82f10cf62fa54a80ae /cpukit/libfs/src/imfs/imfs_stat.c | |
parent | 6661435f8498e6255525d17973ff02ed9d885e92 (diff) |
IMFS: New support functions
Add and use IMFS_type() and IMFS_is_directory().
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_stat.c')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_stat.c b/cpukit/libfs/src/imfs/imfs_stat.c index 66d1ca2ba9..42185f3683 100644 --- a/cpukit/libfs/src/imfs/imfs_stat.c +++ b/cpukit/libfs/src/imfs/imfs_stat.c @@ -49,11 +49,11 @@ int IMFS_stat( IMFS_jnode_t *the_jnode = loc->node_access; IMFS_device_t *io = &the_jnode->info.device; - if ( the_jnode->type == IMFS_HARD_LINK ) { + if ( IMFS_type( the_jnode ) == IMFS_HARD_LINK ) { the_jnode = the_jnode->info.hard_link.link_node; } - switch ( the_jnode->type ) { + switch ( IMFS_type( the_jnode ) ) { case IMFS_DEVICE: buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); @@ -97,7 +97,7 @@ int IMFS_stat( buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; - if ( the_jnode->type != IMFS_DIRECTORY ) { + if ( !IMFS_is_directory( the_jnode ) ) { buf->st_blksize = imfs_rq_memfile_bytes_per_block; } |