Ignore:
Timestamp:
Dec 2, 2002, 7:15:24 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
bbad6f0
Parents:
a36e988
Message:

2002-12-02 Joel Sherrill <joel@…>

  • include/rtems/posix/timer.h, src/keygetspecific.c, src/posixtimespecsubtract.c, src/ptimer1.c, src/semunlink.c: Added casts to eliminate warnings on 16-bit targets like the h8300.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/include/rtems/posix/timer.h

    ra36e988 r35ee867  
    1414#define STATE_CREATE_RUN_C  0x03 /* Created timer and running              */
    1515#define STATE_CREATE_STOP_C 0x04 /* Created, ran and stopped timer         */
    16 #define MAX_NSEC_C    1000000000 /* Maximum number of nsec allowed         */
     16/* Maximum number of nsec allowed         */
     17#define MAX_NSEC_C    (unsigned32)1000000000
    1718#define MIN_NSEC_C             0 /* Minimum number of nsec allowew         */
    1819#define TIMER_RELATIVE_C       0 /* Indicates that the fire time is
    1920                                  * relative to the current one            */
    2021#define SEC_TO_TICKS_C _TOD_Ticks_per_second /* Number of ticks in a second*/
    21 #define NSEC_PER_SEC_C 1000000000 /* Nanoseconds in a second               */
     22/* Nanoseconds in a second               */
     23#define NSEC_PER_SEC_C (unsigned32)1000000000
    2224
    2325#define NO_MORE_TIMERS_C      11 /* There is not available timers          */
    2426#define BAD_TIMER_C           11 /* The timer does not exist in the table  */
    2527
    26 #define SECONDS_PER_YEAR_C    ( 360 * 24 * 60 * 60 )
    27 #define SECONDS_PER_MONTH_C    ( 30 * 24 * 60 * 60 )
    28 #define SECONDS_PER_DAY_C           ( 24 * 60 * 60 )
    29 #define SECONDS_PER_HOUR_C               ( 60 * 60 )
    30 #define SECONDS_PER_MINUTE_C                  ( 60 )
     28#define SECONDS_PER_YEAR_C    (unsigned32)(360 * 24) * (unsigned32)(60 * 60)
     29#define SECONDS_PER_MONTH_C   (unsigned32)( 30 * 24) * (unsigned32)(60 * 60)
     30#define SECONDS_PER_DAY_C     (unsigned32)( 24 * 60) * (unsigned32)(60)
     31#define SECONDS_PER_HOUR_C               (unsigned32)( 60 * 60 )
     32#define SECONDS_PER_MINUTE_C                  (unsigned32)( 60 )
    3133
    3234
Note: See TracChangeset for help on using the changeset viewer.