diff options
author | Chris Johns <chrisj@rtems.org> | 2009-06-12 02:59:18 +0000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2009-06-12 02:59:18 +0000 |
commit | 7275542171f6aba5d34bac60a6135fab86a5b1c9 (patch) | |
tree | 3f648b1011ad98068a6178f030ea39f89431bc3d /cpukit/libcsupport/src/eval.c | |
parent | 2009-06-12 Chris Johns <chrisj@rtems.org> (diff) | |
download | rtems-7275542171f6aba5d34bac60a6135fab86a5b1c9.tar.bz2 |
2009-06-12 Chris Johns <chrisj@rtems.org>
* libblock/include/rtems/flashdisk.h,
libblock/include/rtems/nvdisk.h, libblock/src/flashdisk.c,
libblock/src/nvdisk.c: Change names to match the RAM disk change.
* libcsupport/src/eval.c: Remove some warnings.
Diffstat (limited to 'cpukit/libcsupport/src/eval.c')
-rw-r--r-- | cpukit/libcsupport/src/eval.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/cpukit/libcsupport/src/eval.c b/cpukit/libcsupport/src/eval.c index 5870155189..d3ccc7c78d 100644 --- a/cpukit/libcsupport/src/eval.c +++ b/cpukit/libcsupport/src/eval.c @@ -29,7 +29,7 @@ int rtems_filesystem_evaluate_relative_path( int follow_link ) { - int i; + //int i; int result; rtems_filesystem_node_types_t type; @@ -46,7 +46,7 @@ int rtems_filesystem_evaluate_relative_path( if ( !pathloc->ops->evalpath_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); - result = (*pathloc->ops->evalpath_h)( &pathname[i], pathnamelen, flags, pathloc ); + result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); /* * Get the Node type and determine if you need to follow the link or @@ -99,9 +99,7 @@ int rtems_filesystem_evaluate_path( int follow_link ) { - int i; - int result; - rtems_filesystem_node_types_t type; + int i = 0; /* * Verify Input parameters. @@ -122,8 +120,8 @@ int rtems_filesystem_evaluate_path( /* * We evaluation the path relative to the start location we get got. */ - return rtems_filesystem_evaluate_relative_path( pathname, - pathnamelen, + return rtems_filesystem_evaluate_relative_path( &pathname[i], + pathnamelen - i, flags, pathloc, follow_link ); |