summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_libflushall.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-14 20:51:11 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-14 20:51:11 +0000
commit33d20a1c87eb7cae586cc0d444729eda6c46e723 (patch)
tree8232edf97066c2d2c3afaf3fea3b51ff51f702cb /nuttx/lib/lib_libflushall.c
parent6260f872623acfe046f62a728405dbadc2a60c8c (diff)
downloadpx4-nuttx-33d20a1c87eb7cae586cc0d444729eda6c46e723.tar.gz
px4-nuttx-33d20a1c87eb7cae586cc0d444729eda6c46e723.tar.bz2
px4-nuttx-33d20a1c87eb7cae586cc0d444729eda6c46e723.zip
Switching to C99 stdint.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2338 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_libflushall.c')
-rw-r--r--nuttx/lib/lib_libflushall.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/nuttx/lib/lib_libflushall.c b/nuttx/lib/lib_libflushall.c
index 16ee4f7a9..49ee41e66 100644
--- a/nuttx/lib/lib_libflushall.c
+++ b/nuttx/lib/lib_libflushall.c
@@ -1,7 +1,7 @@
/****************************************************************************
* lib/lib_libflushall.c
*
- * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -34,16 +34,12 @@
****************************************************************************/
/****************************************************************************
- * Compilation Switches
- ****************************************************************************/
-
-/****************************************************************************
* Included Files
****************************************************************************/
#include <nuttx/config.h>
-#include <sys/types.h>
+#include <stdbool.h>
#include <fcntl.h>
#include <errno.h>
@@ -52,7 +48,7 @@
#include "lib_internal.h"
/****************************************************************************
- * Definitions
+ * Pre-processor Definitions
****************************************************************************/
/****************************************************************************
@@ -119,7 +115,7 @@ int lib_flushall(FAR struct streamlist *list)
{
/* Flush the writable FILE */
- if (lib_fflush(stream, TRUE) != 0)
+ if (lib_fflush(stream, true) != 0)
{
/* An error occurred during the flush AND/OR we were unable
* to flush all of the buffered write data. Return EOF on failure.