RTEMS | Reformat cpukit rtems src (!237)
Gedare Bloom (@gedare)
gitlab at rtems.org
Mon Sep 23 23:34:48 UTC 2024
Gedare Bloom commented on a discussion on cpukit/rtems/src/clocktodtoseconds.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/237#note_112442
>
> -
> -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 ];
We can control this with `AlignConseuctiveAssignments.AlignCompound` if we want to disable.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/237#note_112442
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/3ec095f7/attachment-0001.htm>
More information about the bugs
mailing list