[rtems commit] samples - Eliminate missing prototype warnings

Joel Sherrill joel at rtems.org
Thu May 31 20:31:34 UTC 2012


Module:    rtems
Branch:    master
Commit:    5f0cd3499cc4230bfabe798c9e4c25d224f03d07
Changeset: http://git.rtems.org/rtems/commit/?id=5f0cd3499cc4230bfabe798c9e4c25d224f03d07

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Sat May 12 11:12:57 2012 -0500

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 24c6206..e2a9b84 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 a8ac539..8ad2eed 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 28eeb57..67f87dd 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 3c1cf53..280de0c 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 92139e4..75d16a4 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 01b14b8..8a44a88 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 0feccf5..398dbe7 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 584bd5b..77cef53 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 3142bff..f94c672 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 9feb3d4..bd23c33 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 a11f07b..4519ad6 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 ca3442e..d9366f8 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 29446b6..a4eb167 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.
  */
 




More information about the vc mailing list