From 7275542171f6aba5d34bac60a6135fab86a5b1c9 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Fri, 12 Jun 2009 02:59:18 +0000 Subject: 2009-06-12 Chris Johns * 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. --- cpukit/libcsupport/src/eval.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'cpukit/libcsupport/src/eval.c') 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 ); -- cgit v1.2.3