[PATCH 3/7] libcsupport: Use RTEMS_DECONST()

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Sep 5 07:33:53 UTC 2014


---
 cpukit/libcsupport/src/sup_fs_deviceio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/libcsupport/src/sup_fs_deviceio.c b/cpukit/libcsupport/src/sup_fs_deviceio.c
index 72cdca3..294e14a 100644
--- a/cpukit/libcsupport/src/sup_fs_deviceio.c
+++ b/cpukit/libcsupport/src/sup_fs_deviceio.c
@@ -101,7 +101,7 @@ ssize_t rtems_deviceio_write(
 
   args.iop = iop;
   args.offset = iop->offset;
-  args.buffer = buf;
+  args.buffer = RTEMS_DECONST( void *, buf );
   args.count = nbyte;
   args.flags = iop->flags;
   args.bytes_moved = 0;
-- 
1.8.4.5




More information about the devel mailing list