diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-07-31 00:28:24 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-07-31 00:28:24 +0000 |
commit | ad910059a7501d0f9f7b5f722258cb902c64eb15 (patch) | |
tree | 522105d53d29cdc3a37a6b75977830bd7c1faa83 /nuttx/lib | |
parent | d5b792fdafc619122a2e5cae2e5918cc451ff84a (diff) | |
download | px4-nuttx-ad910059a7501d0f9f7b5f722258cb902c64eb15.tar.gz px4-nuttx-ad910059a7501d0f9f7b5f722258cb902c64eb15.tar.bz2 px4-nuttx-ad910059a7501d0f9f7b5f722258cb902c64eb15.zip |
Fix bug: Using unsigned to detect errno<0
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@791 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/lib_libfflush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/lib/lib_libfflush.c b/nuttx/lib/lib_libfflush.c index 52af91c8d..23be9c83a 100644 --- a/nuttx/lib/lib_libfflush.c +++ b/nuttx/lib/lib_libfflush.c @@ -106,7 +106,7 @@ ssize_t lib_fflush(FILE *stream, boolean bforce) { #if CONFIG_STDIO_BUFFER_SIZE > 0 const unsigned char *src; - size_t bytes_written; + ssize_t bytes_written; size_t nbuffer; /* Return EBADF if the file is not opened for writing */ |