summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs/imfs_unlink.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 20:20:13 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-11-02 20:20:13 +0000
commitb568ccb7455fa29df50205d5fc13802598ced1d6 (patch)
tree83690f72a7978f78a2181dddf6b923c8001ee6cf /cpukit/libfs/src/imfs/imfs_unlink.c
parentSplit object.c into multiple files. (diff)
downloadrtems-b568ccb7455fa29df50205d5fc13802598ced1d6.tar.bz2
The object memfile.o was being included in the miniIMFS even though it
should not have been. This required that IMFS_rmnod be split into three separate (per file type) routines to avoid dependencies. In the end, a miniIMFS application is 6K smaller than one using the full IMFS.
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_unlink.c')
-rw-r--r--cpukit/libfs/src/imfs/imfs_unlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_unlink.c b/cpukit/libfs/src/imfs/imfs_unlink.c
index 4e0ca26b2a..e138064e61 100644
--- a/cpukit/libfs/src/imfs/imfs_unlink.c
+++ b/cpukit/libfs/src/imfs/imfs_unlink.c
@@ -55,13 +55,13 @@ int IMFS_unlink(
node->info.hard_link.link_node->st_nlink --;
IMFS_update_ctime( node->info.hard_link.link_node );
if ( node->info.hard_link.link_node->st_nlink < 1) {
- result = IMFS_rmnod( &the_link );
+ result = (*loc->handlers->rmnod)( &the_link );
if ( result != 0 )
return -1;
}
}
- result = IMFS_rmnod( loc );
+ result = (*loc->handlers->rmnod)( &the_link );
return result;
}