summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/unlink.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-11-29 13:35:32 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-11-29 13:35:32 +0000
commit18daff9b95bbe4d5004a99079207a5343760ecd3 (patch)
treeb964869a341cda8ab268ae3643ea9be3ed1a78f4 /cpukit/libcsupport/src/unlink.c
parentWhitespace removal. (diff)
downloadrtems-18daff9b95bbe4d5004a99079207a5343760ecd3.tar.bz2
Whitespace removal.
Diffstat (limited to 'cpukit/libcsupport/src/unlink.c')
-rw-r--r--cpukit/libcsupport/src/unlink.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/libcsupport/src/unlink.c b/cpukit/libcsupport/src/unlink.c
index 29096d3e6f..359e64b4bc 100644
--- a/cpukit/libcsupport/src/unlink.c
+++ b/cpukit/libcsupport/src/unlink.c
@@ -34,9 +34,9 @@ int unlink(
/*
* Get the node to be unlinked. Find the parent path first.
*/
-
+
parentpathlen = rtems_filesystem_dirname ( path );
-
+
if ( parentpathlen == 0 )
rtems_filesystem_get_start_loc( path, &i, &parentloc );
else {
@@ -47,22 +47,22 @@ int unlink(
if ( result != 0 )
return -1;
}
-
+
/*
* Start from the parent to find the node that should be under it.
*/
-
+
loc = parentloc;
name = path + parentpathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
-
+
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &loc, false );
if ( result != 0 ) {
rtems_filesystem_freenode( &parentloc );
return -1;
}
-
+
if ( !loc.ops->node_type_h ) {
rtems_filesystem_freenode( &loc );
rtems_filesystem_freenode( &parentloc );