[rtems commit] testsuites: Fix prototypes

Sebastian Huber sebh at rtems.org
Sun Jan 27 12:57:33 UTC 2013


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Sun Jan 27 13:46:40 2013 +0100

testsuites: Fix prototypes

---

 testsuites/libtests/stackchk/init.c           |    6 +++++-
 testsuites/libtests/stackchk/system.h         |    6 +++++-
 testsuites/psxtests/psxfatal_support/init.c   |    7 +++----
 testsuites/psxtests/psxfatal_support/system.h |    6 +++---
 testsuites/sptests/spfatal_support/init.c     |    7 +++----
 testsuites/sptests/spfatal_support/system.h   |    6 +++---
 6 files changed, 22 insertions(+), 16 deletions(-)

diff --git a/testsuites/libtests/stackchk/init.c b/testsuites/libtests/stackchk/init.c
index 1551eec..772b039 100644
--- a/testsuites/libtests/stackchk/init.c
+++ b/testsuites/libtests/stackchk/init.c
@@ -86,7 +86,11 @@ rtems_task Init(
   directive_failed( status, "rtems_task_delete of RTEMS_SELF" );
 }
 
-void Fatal_extension( uint32_t source, bool is_internal, uint32_t error )
+void Fatal_extension(
+  rtems_fatal_source source,
+  bool               is_internal,
+  rtems_fatal_code   error
+)
 {
   if ( source != RTEMS_FATAL_SOURCE_STACK_CHECKER ) {
     printk( "unexpected fatal source\n" );
diff --git a/testsuites/libtests/stackchk/system.h b/testsuites/libtests/stackchk/system.h
index 95babb8..16b623a 100644
--- a/testsuites/libtests/stackchk/system.h
+++ b/testsuites/libtests/stackchk/system.h
@@ -41,7 +41,11 @@ void blow_stack( void );
 
 #define CONFIGURE_STACK_CHECKER_ENABLED
 
-void Fatal_extension( uint32_t source, bool is_internal, uint32_t error );
+void Fatal_extension(
+  rtems_fatal_source source,
+  bool               is_internal,
+  rtems_fatal_code   error
+);
 
 #define CONFIGURE_INITIAL_EXTENSIONS \
   { NULL, NULL, NULL, NULL, NULL, NULL, NULL, Fatal_extension }
diff --git a/testsuites/psxtests/psxfatal_support/init.c b/testsuites/psxtests/psxfatal_support/init.c
index 06c90a7..93645e6 100644
--- a/testsuites/psxtests/psxfatal_support/init.c
+++ b/testsuites/psxtests/psxfatal_support/init.c
@@ -83,11 +83,10 @@ void Put_Source( rtems_fatal_source source )
   printk( "%s", rtems_fatal_source_description( source ) );
 }
 
-
 void Fatal_extension(
-  uint32_t   source,
-  bool       is_internal,
-  uint32_t   error
+  rtems_fatal_source source,
+  bool               is_internal,
+  rtems_fatal_code   error
 )
 {
   print_test_begin_message();
diff --git a/testsuites/psxtests/psxfatal_support/system.h b/testsuites/psxtests/psxfatal_support/system.h
index 4293474..e7ba4b1 100644
--- a/testsuites/psxtests/psxfatal_support/system.h
+++ b/testsuites/psxtests/psxfatal_support/system.h
@@ -36,9 +36,9 @@ void *POSIX_Init(
 );
 
 void Fatal_extension(
-  uint32_t   source,
-  bool    is_internal,
-  uint32_t   error
+  rtems_fatal_source source,
+  bool               is_internal,
+  rtems_fatal_code   error
 );
 
 /* need prototypes */
diff --git a/testsuites/sptests/spfatal_support/init.c b/testsuites/sptests/spfatal_support/init.c
index 4ed7435..eb7a167 100644
--- a/testsuites/sptests/spfatal_support/init.c
+++ b/testsuites/sptests/spfatal_support/init.c
@@ -80,11 +80,10 @@ void Put_Source( rtems_fatal_source source )
   printk( "%s", rtems_fatal_source_description( source ) );
 }
 
-
 void Fatal_extension(
-  uint32_t   source,
-  bool       is_internal,
-  uint32_t   error
+  rtems_fatal_source source,
+  bool               is_internal,
+  rtems_fatal_code   error
 )
 {
   print_test_begin_message();
diff --git a/testsuites/sptests/spfatal_support/system.h b/testsuites/sptests/spfatal_support/system.h
index 4126c65..69f917f 100644
--- a/testsuites/sptests/spfatal_support/system.h
+++ b/testsuites/sptests/spfatal_support/system.h
@@ -25,9 +25,9 @@ rtems_task Init(
 );
 
 void Fatal_extension(
-  uint32_t   source,
-  bool       is_internal,
-  uint32_t   error
+  rtems_fatal_source source,
+  bool               is_internal,
+  rtems_fatal_code   error
 );
 
 void Put_Error(




More information about the vc mailing list