summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/src/_rename_r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/_rename_r.c b/cpukit/libcsupport/src/_rename_r.c
index d12355c8d0..f1e73fc18d 100644
--- a/cpukit/libcsupport/src/_rename_r.c
+++ b/cpukit/libcsupport/src/_rename_r.c
@@ -70,7 +70,7 @@ int _rename_r(
if ( result != 0 ) {
if ( free_old_parentloc )
rtems_filesystem_freenode( &old_parent_loc );
- rtems_set_errno_and_return_minus_one( result );
+ return -1;
}
/*
@@ -92,7 +92,7 @@ int _rename_r(
if ( free_old_parentloc )
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
- rtems_set_errno_and_return_minus_one( result );
+ return -1;
}
/*