summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGedare Bloom <gedare@rtems.org>2015-03-16 12:14:15 -0400
committerGedare Bloom <gedare@rtems.org>2015-03-16 12:14:15 -0400
commitb4d1f0899b93f6e8a57c09a78db501ca549c8a34 (patch)
treead5e1468b1f55ff0e18b32308f51f73028749b68
parent71260b4a092cb4afad3c44bae36c2636059bfd27 (diff)
downloadrtems-b4d1f0899b93f6e8a57c09a78db501ca549c8a34.tar.bz2
rfs: cast minor to uintptr_t to truncate explicitly
-rw-r--r--cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c
index 28e47392a2..a8ba126f16 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems-dev.c
@@ -30,7 +30,7 @@ rtems_rfs_rtems_device_get_major_and_minor ( const rtems_libio_t *iop,
rtems_device_minor_number *minor)
{
*major = iop->data0;
- *minor = (rtems_device_minor_number) iop->data1;
+ *minor = (rtems_device_minor_number) (uintptr_t) iop->data1;
}
/**
@@ -77,7 +77,7 @@ rtems_rfs_rtems_device_open ( rtems_libio_t *iop,
rtems_rfs_rtems_unlock (fs);
iop->data0 = major;
- iop->data1 = (void *) minor;
+ iop->data1 = (void *) (uintptr_t) minor;
return rtems_deviceio_open (iop, pathname, oflag, mode, minor, major);
}