summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2006-12-08 07:18:27 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2006-12-08 07:18:27 +0000
commit7192476f7a9640986f9338f6ece9f0eec6ee8766 (patch)
tree98117cdc74f6b143e01681147779090bb0e4cf75 /cpukit/libcsupport
parent2006-12-08 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-7192476f7a9640986f9338f6ece9f0eec6ee8766.tar.bz2
Use size_t instead of uint32_t for read/write count-args.
Diffstat (limited to 'cpukit/libcsupport')
-rw-r--r--cpukit/libcsupport/include/rtems/libio.h4
-rw-r--r--cpukit/libcsupport/src/read.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libcsupport/include/rtems/libio.h b/cpukit/libcsupport/include/rtems/libio.h
index 4b5e000bea..cf0441cbac 100644
--- a/cpukit/libcsupport/include/rtems/libio.h
+++ b/cpukit/libcsupport/include/rtems/libio.h
@@ -67,13 +67,13 @@ typedef int (*rtems_filesystem_close_t)(
typedef ssize_t (*rtems_filesystem_read_t)(
rtems_libio_t *iop,
void *buffer,
- uint32_t count
+ size_t count
);
typedef ssize_t (*rtems_filesystem_write_t)(
rtems_libio_t *iop,
const void *buffer,
- uint32_t count
+ size_t count
);
typedef int (*rtems_filesystem_ioctl_t)(
diff --git a/cpukit/libcsupport/src/read.c b/cpukit/libcsupport/src/read.c
index a57426666c..46f731e479 100644
--- a/cpukit/libcsupport/src/read.c
+++ b/cpukit/libcsupport/src/read.c
@@ -24,7 +24,7 @@ ssize_t read(
size_t count
)
{
- int rc; /* XXX change to a size_t when prototype is fixed */
+ ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
@@ -59,7 +59,7 @@ ssize_t read(
#include <reent.h>
-_ssize_t _read_r(
+ssize_t _read_r(
struct _reent *ptr,
int fd,
void *buf,