From 436ef337de329a0fba7f597a011169597cec08e5 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Sun, 11 Dec 2011 06:49:22 +0000 Subject: =?UTF-8?q?2011-12-11=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * support/include/tmtests_empty_function.h: New. * support/src/tmtests_empty_function.c, support/src/tmtests_support.c: Include "tmtests_empty_function.h". Remove local decls (Missing prototypes). --- .../support/include/tmtests_empty_function.h | 25 ++++++++++++++++++++++ testsuites/support/src/tmtests_empty_function.c | 2 +- testsuites/support/src/tmtests_support.c | 6 +----- 3 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 testsuites/support/include/tmtests_empty_function.h diff --git a/testsuites/support/include/tmtests_empty_function.h b/testsuites/support/include/tmtests_empty_function.h new file mode 100644 index 0000000000..766b266bfd --- /dev/null +++ b/testsuites/support/include/tmtests_empty_function.h @@ -0,0 +1,25 @@ +/* + * Prototypes for RTEMS tmtests_empty_function.c. + * + * COPYRIGHT (c) 2011, Ralf Corsépius, Ulm/Germany. + * + * 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. + * + * $Id$ + */ + +#ifndef _TMTESTS_EMPTY_FUNCTION_H +#define _TMTESTS_EMPTY_FUNCTION_H + +#include + +extern rtems_status_code benchmark_timer_empty_function( void ); + +extern void benchmark_timer_empty_operation( + int iteration, + void *argument +); + +#endif /* _TMTESTS_EMPTY_FUNCTION_H */ diff --git a/testsuites/support/src/tmtests_empty_function.c b/testsuites/support/src/tmtests_empty_function.c index 9b4ad95b5a..6b3ba3c6b6 100644 --- a/testsuites/support/src/tmtests_empty_function.c +++ b/testsuites/support/src/tmtests_empty_function.c @@ -18,7 +18,7 @@ #include -rtems_status_code benchmark_timer_empty_function( void ); +#include "tmtests_empty_function.h" rtems_status_code benchmark_timer_empty_function( void ) { diff --git a/testsuites/support/src/tmtests_support.c b/testsuites/support/src/tmtests_support.c index c3208427ec..4521b81d57 100644 --- a/testsuites/support/src/tmtests_support.c +++ b/testsuites/support/src/tmtests_support.c @@ -19,11 +19,7 @@ #include #include "test_support.h" #include "timesys.h" - -extern void benchmark_timer_empty_operation( - int iteration, - void *argument -); +#include "tmtests_empty_function.h" void rtems_time_test_measure_operation( const char *description, -- cgit v1.2.3