diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-05-12 11:12:57 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-05-31 10:06:16 -0500 |
commit | 5f0cd3499cc4230bfabe798c9e4c25d224f03d07 (patch) | |
tree | af3bfb44e492e5fdc59505894eeb50c17eb82dd2 /testsuites/samples | |
parent | sptests - Eliminate missing prototype warnings (diff) | |
download | rtems-5f0cd3499cc4230bfabe798c9e4c25d224f03d07.tar.bz2 |
samples - Eliminate missing prototype warnings
Diffstat (limited to 'testsuites/samples')
-rw-r--r-- | testsuites/samples/base_mp/init.c | 18 | ||||
-rw-r--r-- | testsuites/samples/base_sp/init.c | 18 | ||||
-rw-r--r-- | testsuites/samples/capture/init.c | 21 | ||||
-rw-r--r-- | testsuites/samples/cdtest/init.c | 15 | ||||
-rw-r--r-- | testsuites/samples/fileio/init.c | 15 | ||||
-rw-r--r-- | testsuites/samples/hello/init.c | 18 | ||||
-rw-r--r-- | testsuites/samples/loopback/init.c | 6 | ||||
-rw-r--r-- | testsuites/samples/minimum/init.c | 12 | ||||
-rw-r--r-- | testsuites/samples/nsecs/init.c | 7 | ||||
-rw-r--r-- | testsuites/samples/paranoia/init.c | 15 | ||||
-rw-r--r-- | testsuites/samples/pppd/init.c | 10 | ||||
-rw-r--r-- | testsuites/samples/ticker/init.c | 15 | ||||
-rw-r--r-- | 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 <stdio.h> +/* 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 <stdio.h> +/* 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 <rtems/monitor.h> #include <rtems/shell.h> +/* 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 <stdio.h> #include <stdlib.h> +/* 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 <bsp.h> #include <rtems/score/thread.h> +/* 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 <stdio.h> #include <stdlib.h> #include <string.h> 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. */ |