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
This commit is contained in:
patacongo
2008-07-31 00:28:24 +00:00
parent 378b050ffa
commit faf168d93c
8 changed files with 228 additions and 93 deletions
+1 -1
View File
@@ -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 */