Chris Johns started a new discussion on cpukit/rtems/src/clockgettod.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/237#note_112483

 > -#define RTEMS_SECS_PER_HOUR   (RTEMS_SECS_PER_MINUTE * 
 > RTEMS_MINUTE_PER_HOUR)
 > -#define RTEMS_HOURS_PER_DAY   (24UL)
 > -#define RTEMS_SECS_PER_DAY    (RTEMS_SECS_PER_HOUR * RTEMS_HOURS_PER_DAY)
 > -#define RTEMS_DAYS_PER_YEAR   (365UL)
 > -#define RTEMS_YEAR_BASE       (1970UL)
 > -
 > -static bool _Leap_year(
 > -  uint32_t year
 > -)
 > +#define RTEMS_SECS_PER_MINUTE ( 60UL )
 > +#define RTEMS_MINUTE_PER_HOUR ( 60UL )
 > +#define RTEMS_SECS_PER_HOUR ( RTEMS_SECS_PER_MINUTE * RTEMS_MINUTE_PER_HOUR 
 > )
 > +#define RTEMS_HOURS_PER_DAY ( 24UL )
 > +#define RTEMS_SECS_PER_DAY ( RTEMS_SECS_PER_HOUR * RTEMS_HOURS_PER_DAY )
 > +#define RTEMS_DAYS_PER_YEAR ( 365UL )
 > +#define RTEMS_YEAR_BASE ( 1970UL )

The  alignment on the macros help view and check but not a big issue.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/237#note_112483
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to