[rtems commit] rtems-rfs-rtems.c: Add cast to address warning
Joel Sherril
joel at rtems.org
Tue Nov 25 20:40:34 UTC 2014
Module: rtems
Branch: master
Commit: 505b680642edaba1f9d4b2f51d7de13b361be352
Changeset: http://git.rtems.org/rtems/commit/?id=505b680642edaba1f9d4b2f51d7de13b361be352
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Mon Nov 24 13:55:29 2014 -0600
rtems-rfs-rtems.c: Add cast to address warning
---
cpukit/libfs/src/rfs/rtems-rfs-rtems.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
index 6cefe9d..4dcb827 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c
@@ -521,7 +521,7 @@ rtems_rfs_rtems_fstat (const rtems_filesystem_location_info_t* pathloc,
rtems_rfs_inode_get_block (&inode, 1));
}
- buf->st_dev = (dev_t) rtems_rfs_fs_device (fs);
+ buf->st_dev = (dev_t) (uintptr_t)rtems_rfs_fs_device (fs);
buf->st_ino = rtems_rfs_inode_ino (&inode);
buf->st_mode = rtems_rfs_rtems_mode (mode);
buf->st_nlink = rtems_rfs_inode_get_links (&inode);
More information about the vc
mailing list