RTEMS | Reformat cpukit rtems src (!237)

Chris Johns (@chris) gitlab at rtems.org
Tue Sep 24 01:14:27 UTC 2024




Chris Johns commented on a discussion on cpukit/rtems/src/clocktodtoseconds.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/237#note_112482

 >  
 > -
 > -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 ];

I prefer no alignment. Saves wear on my space bar.

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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240924/198f28a4/attachment.htm>


More information about the bugs mailing list