From 781631ebe4378d61004257186122878791470715 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 7 Apr 2014 14:50:34 +0200 Subject: sptests/spwatchdog: Fix for short enums --- testsuites/sptests/spwatchdog/init.c | 15 +++++++++++---- 1 file 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 ); } -- cgit v1.2.3