[rtems commit] devfs: C++ compatibility

Sebastian Huber sebh at rtems.org
Mon May 14 14:57:18 UTC 2012


Module:    rtems
Branch:    master
Commit:    29192481a8adb4e4f6f0a92a44e7cd3aaf1bb3cd
Changeset: http://git.rtems.org/rtems/commit/?id=29192481a8adb4e4f6f0a92a44e7cd3aaf1bb3cd

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon May 14 15:07:08 2012 +0200

devfs: C++ compatibility

---

 cpukit/libfs/src/devfs/devfs.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpukit/libfs/src/devfs/devfs.h b/cpukit/libfs/src/devfs/devfs.h
index 758edf9..64b86d4 100644
--- a/cpukit/libfs/src/devfs/devfs.h
+++ b/cpukit/libfs/src/devfs/devfs.h
@@ -59,7 +59,7 @@ static inline const devFS_data *devFS_get_data(
   const rtems_filesystem_location_info_t *loc
 )
 {
-  return loc->mt_entry->immutable_fs_info;
+  return (const devFS_data *) loc->mt_entry->immutable_fs_info;
 }
 
 extern void devFS_eval_path(




More information about the vc mailing list