Sebastian Huber started a new discussion on 
cpukit/rtems/src/clocktodtoseconds.c: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/237#note_112440

 >  
 > -
 > -Watchdog_Interval   _TOD_To_seconds(
 > -  const rtems_time_of_day *the_tod
 > -)
 > +Watchdog_Interval _TOD_To_seconds( const rtems_time_of_day *the_tod )
 >  {
 >    uint32_t time;
 >    size_t   leap_year_index;
 >  
 >    time = the_tod->day - 1;
 >  
 > -  leap_year_index = _TOD_Get_leap_year_index( the_tod->year );
 > -  time += _TOD_Days_to_date[ leap_year_index ][ the_tod->month ];
 > +  leap_year_index  = _TOD_Get_leap_year_index( the_tod->year );
 > +  time            += _TOD_Days_to_date[ leap_year_index ][ the_tod->month ];

Do we really need the operator alignment?

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/237#note_112440
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