diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-08-13 00:32:32 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-08-13 00:32:32 +0000 |
commit | 3169482b6c251e6c532b96c7af5ce2b181660706 (patch) | |
tree | 64ce64ae4b8c16dc5a3428e16bf51a1c1d6f58cf /nuttx/fs | |
parent | b796f476c1dc59a2f063181b65648993b3e1a858 (diff) | |
download | px4-nuttx-3169482b6c251e6c532b96c7af5ce2b181660706.tar.gz px4-nuttx-3169482b6c251e6c532b96c7af5ce2b181660706.tar.bz2 px4-nuttx-3169482b6c251e6c532b96c7af5ce2b181660706.zip |
Fix read()/write() prototype
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@820 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs')
-rw-r--r-- | nuttx/fs/fs_read.c | 2 | ||||
-rw-r--r-- | nuttx/fs/fs_write.c | 4 |
2 files changed, 3 insertions, 3 deletions
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; |