diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-07 14:50:34 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-04-07 14:51:31 +0200 |
commit | 781631ebe4378d61004257186122878791470715 (patch) | |
tree | b436bce0045f686c54b60c0cfc4e194c1862f717 | |
parent | score: Lazy key value pair allocation (diff) | |
download | rtems-781631ebe4378d61004257186122878791470715.tar.bz2 |
sptests/spwatchdog: Fix for short enums
-rw-r--r-- | testsuites/sptests/spwatchdog/init.c | 15 |
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 ); } |