RTEMS | Reformat cpukit rtems src (!237)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Mon Sep 23 23:32:30 UTC 2024
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240923/07f1b2d1/attachment-0001.htm>
More information about the bugs
mailing list