Changeset 73a2caf in rtems


Ignore:
Timestamp:
Mar 20, 2015, 3:50:13 PM (4 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
0d36bfb3
Parents:
2fe0f16d
git-author:
Joel Sherrill <joel.sherrill@…> (03/20/15 15:50:13)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/24/15 13:16:35)
Message:

sptests/spwatchdog/init.c: Avoid integer overflow

File:
1 edited

Legend:

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

    r2fe0f16d r73a2caf  
    3737static void test_watchdog_static_init( void )
    3838{
     39  #if defined(RTEMS_USE_16_BIT_OBJECT)
     40    #define JUNK_ID 0x1234
     41  #else
     42    #define JUNK_ID 0x12345678
     43  #endif
     44
    3945  static Watchdog_Control a = WATCHDOG_INITIALIZER(
    4046    test_watchdog_routine,
    41     0x12345678,
     47    JUNK_ID,
    4248    (void *) 0xdeadbeef
    4349  );
     
    4854    &b,
    4955    test_watchdog_routine,
    50     0x12345678,
     56    JUNK_ID,
    5157    (void *) 0xdeadbeef
    5258  );
Note: See TracChangeset for help on using the changeset viewer.