From d32359a77870a330080ff22a67ab07b0aa2ff724 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 14 Sep 2002 21:01:39 +0000 Subject: 2002-09-14 Joel Sherrill * src/dosfs/fat.c, src/imfs/deviceio.c, src/imfs/imfs.h, src/imfs/imfs_directory.c, src/imfs/imfs_fchmod.c, src/imfs/memfile.c: Eliminated warnings. A lot of this focus was on changing read and write entry points to return ssize_t as read(2) and write(2) now do. --- cpukit/libfs/src/imfs/memfile.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'cpukit/libfs/src/imfs/memfile.c') diff --git a/cpukit/libfs/src/imfs/memfile.c b/cpukit/libfs/src/imfs/memfile.c index cfa37c20c6..711e0c0383 100644 --- a/cpukit/libfs/src/imfs/memfile.c +++ b/cpukit/libfs/src/imfs/memfile.c @@ -59,14 +59,14 @@ MEMFILE_STATIC block_p *IMFS_memfile_get_block_pointer( int malloc_it ); -MEMFILE_STATIC int IMFS_memfile_read( +MEMFILE_STATIC ssize_t IMFS_memfile_read( IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ); -MEMFILE_STATIC int IMFS_memfile_write( +ssize_t IMFS_memfile_write( /* cannot be static as used in imfs_fchmod.c */ IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, @@ -131,7 +131,7 @@ int memfile_close( * This routine processes the read() system call. */ -int memfile_read( +ssize_t memfile_read( rtems_libio_t *iop, void *buffer, unsigned32 count @@ -150,14 +150,14 @@ int memfile_read( * This routine processes the write() system call. */ -int memfile_write( +ssize_t memfile_write( rtems_libio_t *iop, const void *buffer, unsigned32 count ) { IMFS_jnode_t *the_jnode; - int status; + ssize_t status; the_jnode = iop->file_info; @@ -541,7 +541,7 @@ int IMFS_memfile_remove( * read). */ -MEMFILE_STATIC int IMFS_memfile_read( +MEMFILE_STATIC ssize_t IMFS_memfile_read( IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, @@ -691,7 +691,7 @@ MEMFILE_STATIC int IMFS_memfile_read( * file pointed to by the_jnode. The file is extended as needed. */ -MEMFILE_STATIC int IMFS_memfile_write( +MEMFILE_STATIC ssize_t IMFS_memfile_write( IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, -- cgit v1.2.3