summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_libfwrite.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-02-06 01:29:23 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-02-06 01:29:23 +0000
commita26dad80f4d004a4a0f6effedc803b3902389b39 (patch)
tree419248121e228b55362eb1b9b2b98a85e3d96c4c /nuttx/lib/lib_libfwrite.c
parentc58518aeb7694de1e53d17f228cb84c401e82bb4 (diff)
downloadpx4-nuttx-a26dad80f4d004a4a0f6effedc803b3902389b39.tar.gz
px4-nuttx-a26dad80f4d004a4a0f6effedc803b3902389b39.tar.bz2
px4-nuttx-a26dad80f4d004a4a0f6effedc803b3902389b39.zip
fflush(NULL) returns error
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@636 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_libfwrite.c')
-rw-r--r--nuttx/lib/lib_libfwrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/lib/lib_libfwrite.c b/nuttx/lib/lib_libfwrite.c
index 01bc3c285..b7f681051 100644
--- a/nuttx/lib/lib_libfwrite.c
+++ b/nuttx/lib/lib_libfwrite.c
@@ -155,7 +155,7 @@ ssize_t lib_fwrite(const void *ptr, size_t count, FILE *stream)
{
/* Flush the buffered data to the IO stream */
- int bytes_buffered = fflush_internal(stream, FALSE);
+ int bytes_buffered = lib_fflush(stream, FALSE);
if (bytes_buffered < 0)
{
goto errout_with_semaphore;