diff options
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_unlink.c')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_unlink.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_unlink.c b/cpukit/libfs/src/imfs/imfs_unlink.c index b416a09b8e..0ec176ed03 100644 --- a/cpukit/libfs/src/imfs/imfs_unlink.c +++ b/cpukit/libfs/src/imfs/imfs_unlink.c @@ -25,7 +25,8 @@ #include <rtems/seterr.h> int IMFS_unlink( - rtems_filesystem_location_info_t *loc /* IN */ + rtems_filesystem_location_info_t *parentloc, /* IN */ + rtems_filesystem_location_info_t *loc /* IN */ ) { IMFS_jnode_t *node; @@ -60,7 +61,7 @@ int IMFS_unlink( if ( node->info.hard_link.link_node->st_nlink == 1) { - result = (*the_link.handlers->rmnod_h)( &the_link ); + result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); if ( result != 0 ) return -1; } @@ -75,7 +76,7 @@ int IMFS_unlink( * Now actually free the node we were asked to free. */ - result = (*loc->handlers->rmnod_h)( loc ); + result = (*loc->handlers->rmnod_h)( parentloc, loc ); return result; } |