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_fsunmount.c | |
parent | IMFS: Removed superfluous imfs_dir_open() (diff) | |
download | rtems-70927458b7d9b8579cb98782423a8afac4fa624e.tar.bz2 |
IMFS: New support functions
Add and use IMFS_type() and IMFS_is_directory().
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_fsunmount.c')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_fsunmount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_fsunmount.c b/cpukit/libfs/src/imfs/imfs_fsunmount.c index 6f9388ea86..acce21258c 100644 --- a/cpukit/libfs/src/imfs/imfs_fsunmount.c +++ b/cpukit/libfs/src/imfs/imfs_fsunmount.c @@ -61,7 +61,7 @@ void IMFS_fsunmount( loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); - if ( jnode->type != IMFS_DIRECTORY || jnode_has_no_children( jnode ) ) { + if ( !IMFS_is_directory( jnode ) || jnode_has_no_children( jnode ) ) { result = IMFS_rmnod( NULL, &loc ); if ( result != 0 ) rtems_fatal_error_occurred( 0xdeadbeef ); @@ -69,7 +69,7 @@ void IMFS_fsunmount( jnode = next; } if ( jnode != NULL ) { - if ( jnode->type == IMFS_DIRECTORY ) { + if ( IMFS_is_directory( jnode ) ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } |