change log for rtems (2010-05-28)
rtems-vc at rtems.org
rtems-vc at rtems.org
Fri May 28 16:11:15 UTC 2010
*ralf*:
2010-05-28 Ralf Corsépius <ralf.corsepius at rtems.org>
* libfs/src/rfs/rtems-rfs-rtems.c: Use size_t for node_len.
M 1.2331 cpukit/ChangeLog
M 1.8 cpukit/libfs/src/rfs/rtems-rfs-rtems.c
diff -u rtems/cpukit/ChangeLog:1.2330 rtems/cpukit/ChangeLog:1.2331
--- rtems/cpukit/ChangeLog:1.2330 Thu May 27 11:50:01 2010
+++ rtems/cpukit/ChangeLog Fri May 28 10:16:39 2010
@@ -1,3 +1,7 @@
+2010-05-28 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * libfs/src/rfs/rtems-rfs-rtems.c: Use size_t for node_len.
+
2010-05-27 Ralf Corsépius <ralf.corsepius at rtems.org>
* libnetworking/libc/gethostnamadr.c:
diff -u rtems/cpukit/libfs/src/rfs/rtems-rfs-rtems.c:1.7 rtems/cpukit/libfs/src/rfs/rtems-rfs-rtems.c:1.8
--- rtems/cpukit/libfs/src/rfs/rtems-rfs-rtems.c:1.7 Thu May 27 11:32:46 2010
+++ rtems/cpukit/libfs/src/rfs/rtems-rfs-rtems.c Fri May 28 10:16:39 2010
@@ -67,7 +67,7 @@
rtems_rfs_ino ino = rtems_rfs_rtems_get_pathloc_ino (pathloc);
uint32_t doff = 0;
const char* node;
- int node_len;
+ size_t node_len;
int stripped;
int rc;
@@ -120,7 +120,7 @@
node_len = 0;
while (!rtems_filesystem_is_separator (*path) &&
(*path != '\0') && pathlen &&
- (node_len < (rtems_rfs_fs_max_name (fs) - 1)))
+ (node_len + 1 < rtems_rfs_fs_max_name (fs)))
{
path++;
pathlen--;
@@ -159,7 +159,7 @@
if (ino == RTEMS_RFS_ROOT_INO)
{
if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_PATH))
- printf("rtems-rfs-rtems: eval-path: crossmount: path:%s (%d)\n",
+ printf("rtems-rfs-rtems: eval-path: crossmount: path:%s (%zd)\n",
path - node_len, pathlen + node_len);
rtems_rfs_inode_close (fs, &inode);
rtems_rfs_rtems_unlock (fs);
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100528/2d06e336/attachment-0001.html>
More information about the vc
mailing list