[rtems commit] rfs: Fix for 64-bit targets
Sebastian Huber
sebh at rtems.org
Mon Jan 22 14:24:41 UTC 2018
Module: rtems
Branch: master
Commit: 5fb838d1811c61d3d4a4c0870c94ebd14df9ef6e
Changeset: http://git.rtems.org/rtems/commit/?id=5fb838d1811c61d3d4a4c0870c94ebd14df9ef6e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Jan 22 12:32:46 2018 +0100
rfs: Fix for 64-bit targets
The RTEMS_BLKIO_SETBLKSIZE IO control expects an uint32_t parameter and
not a size_t which is 64-bits on 64-bit targets.
Update #3082.
---
cpukit/libfs/src/rfs/rtems-rfs-buffer.c | 2 +-
cpukit/libfs/src/rfs/rtems-rfs-buffer.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-buffer.c b/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
index d99a351..c1c780b 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
+++ b/cpukit/libfs/src/rfs/rtems-rfs-buffer.c
@@ -411,7 +411,7 @@ rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)
}
int
-rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size)
+rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, uint32_t size)
{
int rc;
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-buffer.h b/cpukit/libfs/src/rfs/rtems-rfs-buffer.h
index f5fe9d4..1c603e1 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-buffer.h
+++ b/cpukit/libfs/src/rfs/rtems-rfs-buffer.h
@@ -268,7 +268,7 @@ int rtems_rfs_buffer_sync (rtems_rfs_file_system* fs);
* @retval 0 Successful operation.
* @retval error_code An error occurred.
*/
-int rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size);
+int rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, uint32_t size);
/**
* Release any chained buffers.
More information about the vc
mailing list