summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_lowstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/lib/lib_lowstream.c')
-rw-r--r--nuttx/lib/lib_lowstream.c32
1 files changed, 20 insertions, 12 deletions
diff --git a/nuttx/lib/lib_lowstream.c b/nuttx/lib/lib_lowstream.c
index e0985d3f1..0045ed7cd 100644
--- a/nuttx/lib/lib_lowstream.c
+++ b/nuttx/lib/lib_lowstream.c
@@ -1,7 +1,7 @@
-/************************************************************
+/****************************************************************************
* lib_lowstream.c
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * 3. Neither the name Gregory Nutt nor the names of its contributors may be
+ * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Included Files
- ************************************************************/
+ ****************************************************************************/
#include <nuttx/config.h>
@@ -47,11 +47,15 @@
#include "lib_internal.h"
-/************************************************************
+/****************************************************************************
* Private Functions
- ************************************************************/
+ ****************************************************************************/
-static void lowstream_putc(struct lib_stream_s *this, int ch)
+/****************************************************************************
+ * Name: lowstream_putc
+ ****************************************************************************/
+
+static void lowstream_putc(FAR struct lib_stream_s *this, int ch)
{
if (this && up_putc(ch) != EOF)
{
@@ -59,11 +63,15 @@ static void lowstream_putc(struct lib_stream_s *this, int ch)
}
}
-/************************************************************
+/****************************************************************************
* Public Functions
- ************************************************************/
+ ****************************************************************************/
+
+/****************************************************************************
+ * Name: lib_lowstream
+ ****************************************************************************/
-void lib_lowstream(struct lib_stream_s *stream)
+void lib_lowstream(FAR struct lib_stream_s *stream)
{
stream->put = lowstream_putc;
stream->nput = 0;