voron

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

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

Constify enqueue_kfifo()

Diffstat:
Minclude/kfifo.h | 2+-
Mkernel/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;