--- testsuites/sptests/sp37/init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c index 22c7d4f2ef..4358e9fffb 100644 --- a/testsuites/sptests/sp37/init.c +++ b/testsuites/sptests/sp37/init.c @@ -169,9 +169,9 @@ static void test_isr_level( void ) static void test_isr_locks( void ) { - static const char name[] = "test"; + ISR_Level normal_interrupt_level = _ISR_Get_level(); - ISR_lock_Control initialized = ISR_LOCK_INITIALIZER( name ); + ISR_lock_Control initialized = ISR_LOCK_INITIALIZER( "test" ); ISR_lock_Control zero_initialized; union { ISR_lock_Control lock; @@ -183,7 +183,7 @@ static void test_isr_locks( void ) ISR_Level interrupt_level; memset( &container, 0xff, sizeof( container ) ); - _ISR_lock_Initialize( &container.lock, name ); + _ISR_lock_Initialize( &container.lock, "test" ); bytes = (const uint8_t *) &initialized; for ( i = 0; i < sizeof( container ); ++i ) { @@ -193,7 +193,7 @@ static void test_isr_locks( void ) } memset( &zero_initialized, 0, sizeof( zero_initialized ) ); - _ISR_lock_Set_name( &zero_initialized, name ); + _ISR_lock_Set_name( &zero_initialized, "test" ); bytes = (const uint8_t *) &zero_initialized; for ( i = 0; i < sizeof( container ); ++i ) { -- 2.17.1 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel