From 4c86e3d8bee2680c9be999b4627b19438f1ae728 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 11 May 2012 12:20:47 -0500 Subject: libtmtests - Eliminate missing prototype warnings --- testsuites/libtests/termios01/termios_testdriver.c | 29 +++++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'testsuites/libtests/termios01/termios_testdriver.c') 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 #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; -- cgit v1.2.3