summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/termios01
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-11 12:20:47 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-05-11 12:20:47 -0500
commit4c86e3d8bee2680c9be999b4627b19438f1ae728 (patch)
treee98cb2c409079e5507a1ddf9f5764781697f1b71 /testsuites/libtests/termios01
parenttmoverhd - Eliminate warnings (diff)
downloadrtems-4c86e3d8bee2680c9be999b4627b19438f1ae728.tar.bz2
libtmtests - Eliminate missing prototype warnings
Diffstat (limited to 'testsuites/libtests/termios01')
-rw-r--r--testsuites/libtests/termios01/termios_testdriver.c29
1 files changed, 25 insertions, 4 deletions
diff --git a/testsuites/libtests/termios01/termios_testdriver.c b/testsuites/libtests/termios01/termios_testdriver.c
index bf874f3b2b..70e0d491af 100644
--- a/testsuites/libtests/termios01/termios_testdriver.c
+++ b/testsuites/libtests/termios01/termios_testdriver.c
@@ -1,7 +1,11 @@
-/*
- * This file contains a test fixture termios device driver
+/**
+ * @file
*
- * COPYRIGHT (c) 1989-2009.
+ * This file contains a test fixture termios device driver.
+ */
+
+/*
+ * COPYRIGHT (c) 1989-2012.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -21,6 +25,19 @@
#include <rtems/libcsupport.h>
#include "termios_testdriver.h"
+/* forward declarations to avoid warnings */
+int termios_test_driver_inbyte_nonblocking(int port);
+void termios_test_driver_outbyte_polled(int port, char ch);
+ssize_t termios_test_driver_write_support(
+ int minor,
+ const char *buf,
+ size_t len
+);
+int termios_test_driver_set_attributes(
+ int minor,
+ const struct termios *t
+);
+
int termios_test_driver_inbyte_nonblocking( int port )
{
return -1;
@@ -33,7 +50,11 @@ void termios_test_driver_outbyte_polled(
{
}
-ssize_t termios_test_driver_write_support (int minor, const char *buf, size_t len)
+ssize_t termios_test_driver_write_support(
+ int minor,
+ const char *buf,
+ size_t len
+)
{
size_t nwrite = 0;