Changeset 781631e in rtems


Ignore:
Timestamp:
Apr 7, 2014, 12:50:34 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
316ba97
Parents:
57c2985
git-author:
Sebastian Huber <sebastian.huber@…> (04/07/14 12:50:34)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/07/14 12:51:31)
Message:

sptests/spwatchdog: Fix for short enums

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spwatchdog/init.c

    r57c2985 r781631e  
    3737static void test_watchdog_static_init( void )
    3838{
    39   Objects_Id id = 0x12345678;
    40   void *arg = (void *) 0xdeadbeef;
    41   Watchdog_Control a = WATCHDOG_INITIALIZER( test_watchdog_routine, id, arg );
     39  static Watchdog_Control a = WATCHDOG_INITIALIZER(
     40    test_watchdog_routine,
     41    0x12345678,
     42    (void *) 0xdeadbeef
     43  );
    4244  Watchdog_Control b;
    4345
    4446  memset( &b, 0, sizeof( b ) );
    45   _Watchdog_Initialize( &b, test_watchdog_routine, id, arg );
     47  _Watchdog_Initialize(
     48    &b,
     49    test_watchdog_routine,
     50    0x12345678,
     51    (void *) 0xdeadbeef
     52  );
    4653
    4754  rtems_test_assert( memcmp( &a, &b, sizeof( a ) ) == 0 );
Note: See TracChangeset for help on using the changeset viewer.