diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-05-27 16:32:46 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2010-05-27 16:32:46 +0000 |
commit | ef5da325ad35b64a8f806dd106844effb74316a0 (patch) | |
tree | b4aafb12b8064feca448aedd2db3eddb96cadf4c | |
parent | 2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-ef5da325ad35b64a8f806dd106844effb74316a0.tar.bz2 |
2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libfs/src/rfs/rtems-rfs-rtems.c:
Use size_t instead of int for pathlen.
Use %zi to print pathlen.
-rw-r--r-- | cpukit/ChangeLog | 3 | ||||
-rw-r--r-- | cpukit/libfs/src/rfs/rtems-rfs-rtems.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 067dc5a691..274490c78d 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,8 @@ 2010-05-27 Ralf Corsépius <ralf.corsepius@rtems.org> + * libfs/src/rfs/rtems-rfs-rtems.c: + Use size_t instead of int for pathlen. + Use %zi to print pathlen. * libcsupport/include/rtems/libio.h: Use size_t instead of int for pathnamelen. * libcsupport/include/rtems/libio_.h, libcsupport/src/eval.c: diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c index c0b2751893..ac102afd1a 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c @@ -58,7 +58,7 @@ */ int rtems_rfs_rtems_eval_path (const char* path, - int pathlen, + size_t pathlen, int flags, rtems_filesystem_location_info_t* pathloc) { @@ -72,7 +72,7 @@ rtems_rfs_rtems_eval_path (const char* path, int rc; if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_PATH)) - printf ("rtems-rfs-rtems: eval-path: in: path:%s pathlen:%i ino:%ld\n", + printf ("rtems-rfs-rtems: eval-path: in: path:%s pathlen:%zi ino:%ld\n", path, pathlen, ino); /* |