From ad910059a7501d0f9f7b5f722258cb902c64eb15 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 31 Jul 2008 00:28:24 +0000 Subject: 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 --- nuttx/lib/lib_libfflush.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nuttx/lib/lib_libfflush.c') 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 */ -- cgit v1.2.3