summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-07 14:50:34 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-07 14:51:31 +0200
commit781631ebe4378d61004257186122878791470715 (patch)
treeb436bce0045f686c54b60c0cfc4e194c1862f717
parent57c29858ce70615f2e203dd38fe3e5f0a2f0a6e0 (diff)
downloadrtems-781631ebe4378d61004257186122878791470715.tar.bz2
sptests/spwatchdog: Fix for short enums
-rw-r--r--testsuites/sptests/spwatchdog/init.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/testsuites/sptests/spwatchdog/init.c b/testsuites/sptests/spwatchdog/init.c
index 2b1bc3d83a..8e329a4f2b 100644
--- a/testsuites/sptests/spwatchdog/init.c
+++ b/testsuites/sptests/spwatchdog/init.c
@@ -36,13 +36,20 @@ static void test_watchdog_routine( Objects_Id id, void *arg )
static void test_watchdog_static_init( void )
{
- Objects_Id id = 0x12345678;
- void *arg = (void *) 0xdeadbeef;
- Watchdog_Control a = WATCHDOG_INITIALIZER( test_watchdog_routine, id, arg );
+ static Watchdog_Control a = WATCHDOG_INITIALIZER(
+ test_watchdog_routine,
+ 0x12345678,
+ (void *) 0xdeadbeef
+ );
Watchdog_Control b;
memset( &b, 0, sizeof( b ) );
- _Watchdog_Initialize( &b, test_watchdog_routine, id, arg );
+ _Watchdog_Initialize(
+ &b,
+ test_watchdog_routine,
+ 0x12345678,
+ (void *) 0xdeadbeef
+ );
rtems_test_assert( memcmp( &a, &b, sizeof( a ) ) == 0 );
}