From 3169482b6c251e6c532b96c7af5ce2b181660706 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 13 Aug 2008 00:32:32 +0000 Subject: Fix read()/write() prototype git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@820 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/fs/fs_read.c | 2 +- nuttx/fs/fs_write.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'nuttx/fs') diff --git a/nuttx/fs/fs_read.c b/nuttx/fs/fs_read.c index 7500d3599..51d10830a 100644 --- a/nuttx/fs/fs_read.c +++ b/nuttx/fs/fs_read.c @@ -53,7 +53,7 @@ * Global Functions ****************************************************************************/ -int read(int fd, FAR void *buf, unsigned int nbytes) +ssize_t read(int fd, FAR void *buf, size_t nbytes) { FAR struct filelist *list; int ret = EBADF; diff --git a/nuttx/fs/fs_write.c b/nuttx/fs/fs_write.c index 28fa8664c..19652ad59 100644 --- a/nuttx/fs/fs_write.c +++ b/nuttx/fs/fs_write.c @@ -58,7 +58,7 @@ * Global Functions ****************************************************************************/ -/******************************************************************************************** +/*************************************************************************** * Function: write * * Description: @@ -108,7 +108,7 @@ * ********************************************************************************************/ -int write(int fd, FAR const void *buf, unsigned int nbytes) +ssize_t write(int fd, FAR const void *buf, size_t nbytes) { #if CONFIG_NFILE_DESCRIPTORS > 0 FAR struct filelist *list; -- cgit v1.2.3