From 0b38d56fdd56cc51ee4286a49a4aa91d83618fc1 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 31 Dec 2013 02:15:42 +0000 Subject: [PATCH] sched: Mark argument of task_get_notification() as const. We never write to the memory pointed to by the argument. --- sched.c | 2 +- sched.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sched.c b/sched.c index 86069029..85f4238b 100644 --- a/sched.c +++ b/sched.c @@ -203,7 +203,7 @@ void task_notify(struct task *t, int err) * * \sa \ref task_notify(). */ -int task_get_notification(struct task *t) +int task_get_notification(const struct task *t) { return t->notification; } diff --git a/sched.h b/sched.h index c706b509..303877a4 100644 --- a/sched.h +++ b/sched.h @@ -80,7 +80,7 @@ int schedule(struct sched *s); char *get_task_list(struct sched *s); void task_notify(struct task *t, int err); void task_notify_all(struct sched *s, int err); -int task_get_notification(struct task *t); +int task_get_notification(const struct task *t); void sched_min_delay(struct sched *s); void sched_request_timeout(struct timeval *to, struct sched *s); void sched_request_timeout_ms(long unsigned ms, struct sched *s); -- 2.39.5