voron

experimental ARM OS
git clone git://git.2f30.org/voron.git
Log | Files | Refs | LICENSE

commit d573437808d978dea443e72ec1b3ddc62475910d
parent 2454703086e2aa12187ece8ec3e14ee936d3b920
Author: sin <sin@2f30.org>
Date:   Wed Jul 24 14:17:20 +0100

Constify enqueue_kfifo()

Diffstat:
include/kfifo.h | 2+-
kernel/kfifo.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/kfifo.h b/include/kfifo.h @@ -5,7 +5,7 @@ struct kfifo *init_kfifo(size_t cap); void free_kfifo(struct kfifo *kfifo); -int enqueue_kfifo(struct kfifo *kfifo, void *data, size_t siz); +int enqueue_kfifo(struct kfifo *kfifo, const void *data, size_t siz); int dequeue_kfifo(struct kfifo *kfifo, void *data, size_t siz); #endif /* __KFIFO_H */ diff --git a/kernel/kfifo.c b/kernel/kfifo.c @@ -39,7 +39,7 @@ free_kfifo(struct kfifo *kfifo) } int -enqueue_kfifo(struct kfifo *kfifo, void *buf, size_t siz) +enqueue_kfifo(struct kfifo *kfifo, const void *buf, size_t siz) { void *tmp;