Changeset 35ee867 in rtems


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.
Location:
cpukit/posix
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/posix/ChangeLog

    ra36e988 r35ee867  
     12002-12-02      Joel Sherrill <joel@OARcorp.com>
     2
     3        * include/rtems/posix/timer.h, src/keygetspecific.c,
     4        src/posixtimespecsubtract.c, src/ptimer1.c, src/semunlink.c:
     5        Added casts to eliminate warnings on 16-bit targets like the h8300.
     6
    172002-11-29      Eric Norum <eric.norum@usask.ca>
    28
  • 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
  • cpukit/posix/src/keygetspecific.c

    ra36e988 r35ee867  
    4444      return key_data;
    4545  }
    46   return (void *) POSIX_BOTTOM_REACHED();
     46  (void) POSIX_BOTTOM_REACHED();
     47  return (void *)NULL;
    4748}
  • cpukit/posix/src/posixtimespecsubtract.c

    ra36e988 r35ee867  
    3232  struct timespec  start_struct = *the_start;
    3333  struct timespec *start = &start_struct;
    34   unsigned int nsecs_per_sec = TOD_NANOSECONDS_PER_SECOND;
     34  unsigned32 nsecs_per_sec = TOD_NANOSECONDS_PER_SECOND;
    3535 
    3636  if (end->tv_nsec < start->tv_nsec) {
  • cpukit/posix/src/ptimer1.c

    ra36e988 r35ee867  
    574574        timer_struct[timer_pos].ticks =
    575575             ( SEC_TO_TICKS_C * value->it_value.tv_sec ) +
    576              ( value->it_value.tv_nsec / ( 1000 * 1000 * 10 ) );
     576             ( value->it_value.tv_nsec /
     577                 (1000L * (unsigned32)(1000 * 10) ));
    577578
    578579        return_v = rtems_timer_fire_after ( timerid,
  • cpukit/posix/src/semunlink.c

    ra36e988 r35ee867  
    5151   */
    5252
    53   if ( !_Objects_Is_local_id(the_semaphore_id) ) {
     53  if ( !_Objects_Is_local_id((Objects_Id)the_semaphore_id) ) {
    5454    _Thread_Enable_dispatch();
    5555    rtems_set_errno_and_return_minus_one( ENOSYS );
Note: See TracChangeset for help on using the changeset viewer.