summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/imfs/imfs_unmount.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_unmount.c')
-rw-r--r--cpukit/libfs/src/imfs/imfs_unmount.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_unmount.c b/cpukit/libfs/src/imfs/imfs_unmount.c
index 1ad0344275..ea40def946 100644
--- a/cpukit/libfs/src/imfs/imfs_unmount.c
+++ b/cpukit/libfs/src/imfs/imfs_unmount.c
@@ -27,6 +27,7 @@
#include "imfs.h"
#include <rtems/libio_.h>
+#include <rtems/seterr.h>
int IMFS_unmount(
rtems_filesystem_mount_table_entry_t *mt_entry
@@ -41,14 +42,14 @@ int IMFS_unmount(
*/
if ( node->type != IMFS_DIRECTORY )
- set_errno_and_return_minus_one( ENOTDIR );
+ rtems_set_errno_and_return_minus_one( ENOTDIR );
/*
* Did the node indicate that there was a directory mounted here?
*/
if ( node->info.directory.mt_fs == NULL )
- set_errno_and_return_minus_one( EINVAL ); /* XXX */
+ rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */
/*
* Set the mt_fs pointer to indicate that there is no longer