[PATCH] rtems: Constify timer fire when directives
Gedare Bloom
gedare at rtems.org
Tue Apr 27 16:07:34 UTC 2021
add ticket
On Tue, Apr 27, 2021 at 2:54 AM Sebastian Huber
<sebastian.huber at embedded-brains.de> wrote:
>
> ---
> cpukit/include/rtems/rtems/timer.h | 4 ++--
> cpukit/rtems/src/timerfirewhen.c | 2 +-
> cpukit/rtems/src/timerserverfirewhen.c | 2 +-
> 3 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/cpukit/include/rtems/rtems/timer.h b/cpukit/include/rtems/rtems/timer.h
> index 2683318e70..eb8bef2532 100644
> --- a/cpukit/include/rtems/rtems/timer.h
> +++ b/cpukit/include/rtems/rtems/timer.h
> @@ -545,7 +545,7 @@ rtems_status_code rtems_timer_fire_after(
> */
> rtems_status_code rtems_timer_fire_when(
> rtems_id id,
> - rtems_time_of_day *wall_time,
> + const rtems_time_of_day *wall_time,
> rtems_timer_service_routine_entry routine,
> void *user_data
> );
> @@ -719,7 +719,7 @@ rtems_status_code rtems_timer_server_fire_after(
> */
> rtems_status_code rtems_timer_server_fire_when(
> rtems_id id,
> - rtems_time_of_day *wall_time,
> + const rtems_time_of_day *wall_time,
> rtems_timer_service_routine_entry routine,
> void *user_data
> );
> diff --git a/cpukit/rtems/src/timerfirewhen.c b/cpukit/rtems/src/timerfirewhen.c
> index 33b2e4480e..1caef49e94 100644
> --- a/cpukit/rtems/src/timerfirewhen.c
> +++ b/cpukit/rtems/src/timerfirewhen.c
> @@ -24,7 +24,7 @@
>
> rtems_status_code rtems_timer_fire_when(
> rtems_id id,
> - rtems_time_of_day *wall_time,
> + const rtems_time_of_day *wall_time,
> rtems_timer_service_routine_entry routine,
> void *user_data
> )
> diff --git a/cpukit/rtems/src/timerserverfirewhen.c b/cpukit/rtems/src/timerserverfirewhen.c
> index 807fff98d7..8be14beccd 100644
> --- a/cpukit/rtems/src/timerserverfirewhen.c
> +++ b/cpukit/rtems/src/timerserverfirewhen.c
> @@ -24,7 +24,7 @@
>
> rtems_status_code rtems_timer_server_fire_when(
> rtems_id id,
> - rtems_time_of_day *wall_time,
> + const rtems_time_of_day *wall_time,
> rtems_timer_service_routine_entry routine,
> void *user_data
> )
> --
> 2.26.2
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
More information about the devel
mailing list