From 5f0cd3499cc4230bfabe798c9e4c25d224f03d07 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sat, 12 May 2012 11:12:57 -0500 Subject: samples - Eliminate missing prototype warnings --- testsuites/samples/base_mp/init.c | 18 +++++------------- testsuites/samples/base_sp/init.c | 18 +++++------------- testsuites/samples/capture/init.c | 21 ++++++++------------- testsuites/samples/cdtest/init.c | 15 ++------------- testsuites/samples/fileio/init.c | 15 ++------------- testsuites/samples/hello/init.c | 18 +++++------------- testsuites/samples/loopback/init.c | 6 ++++++ testsuites/samples/minimum/init.c | 12 ++++++++++-- testsuites/samples/nsecs/init.c | 7 +++++-- testsuites/samples/paranoia/init.c | 15 ++------------- testsuites/samples/pppd/init.c | 10 +++++++++- testsuites/samples/ticker/init.c | 15 ++------------- testsuites/samples/unlimited/init.c | 19 ++++--------------- 13 files changed, 65 insertions(+), 124 deletions(-) diff --git a/testsuites/samples/base_mp/init.c b/testsuites/samples/base_mp/init.c index 24c6206f73..e2a9b84002 100644 --- a/testsuites/samples/base_mp/init.c +++ b/testsuites/samples/base_mp/init.c @@ -1,16 +1,5 @@ -/* Init - * - * This routine is the initialization task for this test program. - * It is called from init_exec and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the application, the current time might be - * set by this task. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1999. +/** + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -26,6 +15,9 @@ #include "system.h" #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + rtems_task Init( rtems_task_argument argument ) diff --git a/testsuites/samples/base_sp/init.c b/testsuites/samples/base_sp/init.c index a8ac53921d..8ad2eedecf 100644 --- a/testsuites/samples/base_sp/init.c +++ b/testsuites/samples/base_sp/init.c @@ -1,16 +1,5 @@ -/* Init - * - * This routine is the initialization task for this test program. - * It is called from init_exec and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the application, the current time might be - * set by this task. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-2011. +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -27,6 +16,9 @@ #include "tmacros.h" #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + #define ARGUMENT 0 rtems_task Init( diff --git a/testsuites/samples/capture/init.c b/testsuites/samples/capture/init.c index 28eeb57934..67f87dd9d0 100644 --- a/testsuites/samples/capture/init.c +++ b/testsuites/samples/capture/init.c @@ -1,16 +1,5 @@ -/* Init - * - * This routine is the initialization task for this test program. - * It is called from init_exec and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the test, it should also be set to a known - * value by this function. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1997. +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may in @@ -33,6 +22,12 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); +#if !BSP_SMALL_MEMORY + static void notification(int fd, int seconds_remaining, void *arg); +#endif + volatile int can_proceed = 1; #if !BSP_SMALL_MEMORY diff --git a/testsuites/samples/cdtest/init.c b/testsuites/samples/cdtest/init.c index 3c1cf538e1..280de0cfbc 100644 --- a/testsuites/samples/cdtest/init.c +++ b/testsuites/samples/cdtest/init.c @@ -1,16 +1,5 @@ -/* Init - * - * This routine is the initialization task for this test program. - * It is called from init_exec and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the test, it should also be set to a known - * value by this function. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1999. +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be diff --git a/testsuites/samples/fileio/init.c b/testsuites/samples/fileio/init.c index 92139e4569..75d16a4909 100644 --- a/testsuites/samples/fileio/init.c +++ b/testsuites/samples/fileio/init.c @@ -1,16 +1,5 @@ -/* Init - * - * This routine is the initialization task for this test program. - * It is called from init_exec and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the test, it should also be set to a known - * value by this function. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-2011. +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be diff --git a/testsuites/samples/hello/init.c b/testsuites/samples/hello/init.c index 01b14b8111..8a44a88991 100644 --- a/testsuites/samples/hello/init.c +++ b/testsuites/samples/hello/init.c @@ -1,16 +1,5 @@ -/* Init - * - * This routine is the initialization task for this test program. - * It is called from init_exec and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the test, it should also be set to a known - * value by this function. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1999. +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -27,6 +16,9 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + rtems_task Init( rtems_task_argument ignored ) diff --git a/testsuites/samples/loopback/init.c b/testsuites/samples/loopback/init.c index 0feccf573a..398dbe7f5c 100644 --- a/testsuites/samples/loopback/init.c +++ b/testsuites/samples/loopback/init.c @@ -1,3 +1,9 @@ +/* + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/testsuites/samples/minimum/init.c b/testsuites/samples/minimum/init.c index 584bd5b4ea..77cef53348 100644 --- a/testsuites/samples/minimum/init.c +++ b/testsuites/samples/minimum/init.c @@ -1,6 +1,11 @@ -/* Minimum Size Application Initialization +/** + * @file * - * COPYRIGHT (c) 1989-2008. + * Minimum Size Application Initialization + */ + +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -17,6 +22,9 @@ #include #include +/* forward declarations to avoid warnings */ +rtems_task Init(rtems_task_argument argument); + rtems_task Init( rtems_task_argument ignored ) diff --git a/testsuites/samples/nsecs/init.c b/testsuites/samples/nsecs/init.c index 3142bffe23..f94c672d0c 100644 --- a/testsuites/samples/nsecs/init.c +++ b/testsuites/samples/nsecs/init.c @@ -1,8 +1,11 @@ -/* +/** + * @file + * * Nanoseconds accuracy timestamp test */ -/* COPYRIGHT (c) 1989-2011. +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be diff --git a/testsuites/samples/paranoia/init.c b/testsuites/samples/paranoia/init.c index 9feb3d4526..bd23c33c0e 100644 --- a/testsuites/samples/paranoia/init.c +++ b/testsuites/samples/paranoia/init.c @@ -1,16 +1,5 @@ -/* Init - * - * This routine is the initialization task for this test program. - * It is called from init_exec and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the test, it should also be set to a known - * value by this function. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1999. +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be diff --git a/testsuites/samples/pppd/init.c b/testsuites/samples/pppd/init.c index a11f07b0e2..4519ad64aa 100644 --- a/testsuites/samples/pppd/init.c +++ b/testsuites/samples/pppd/init.c @@ -1,8 +1,16 @@ +/* + * COPYRIGHT (c) 1989-2012. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif - #include #include #include diff --git a/testsuites/samples/ticker/init.c b/testsuites/samples/ticker/init.c index ca3442ea5e..d9366f8fa0 100644 --- a/testsuites/samples/ticker/init.c +++ b/testsuites/samples/ticker/init.c @@ -1,16 +1,5 @@ -/* Init - * - * This routine is the initialization task for this test program. - * It is called from init_exec and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the test, it should also be set to a known - * value by this function. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-2011. +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be diff --git a/testsuites/samples/unlimited/init.c b/testsuites/samples/unlimited/init.c index 29446b6650..a4eb1676bc 100644 --- a/testsuites/samples/unlimited/init.c +++ b/testsuites/samples/unlimited/init.c @@ -1,20 +1,9 @@ -/* Init - * - * This routine is the initialization task for this test program. - * It is called from init_exec and has the responsibility for creating - * and starting the tasks that make up the test. If the time of day - * clock is required for the test, it should also be set to a known - * value by this function. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * COPYRIGHT (c) 1989-1997. +/* + * COPYRIGHT (c) 1989-2012. * On-Line Applications Research Corporation (OAR). * - * The license and distribution terms for this file may in - * the file LICENSE in this distribution or at + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. */ -- cgit v1.2.3