[PATCH 5/7] kfifo: kfifo_put takes a const buffer

Sascha Hauer s.hauer at pengutronix.de
Mon Apr 11 10:18:39 EDT 2011


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 include/kfifo.h |    2 +-
 lib/kfifo.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/kfifo.h b/include/kfifo.h
index 6f8be10..3eb03cb 100644
--- a/include/kfifo.h
+++ b/include/kfifo.h
@@ -43,7 +43,7 @@ void kfifo_free(struct kfifo *fifo);
  * bytes copied.
  */
 unsigned int kfifo_put(struct kfifo *fifo,
-				unsigned char *buffer, unsigned int len);
+				const unsigned char *buffer, unsigned int len);
 
 /**
  * kfifo_get - gets some data from the FIFO
diff --git a/lib/kfifo.c b/lib/kfifo.c
index bf5cee1..27d44e9 100644
--- a/lib/kfifo.c
+++ b/lib/kfifo.c
@@ -96,7 +96,7 @@ void kfifo_free(struct kfifo *fifo)
  *
  */
 unsigned int kfifo_put(struct kfifo *fifo,
-			 unsigned char *buffer, unsigned int len)
+			 const unsigned char *buffer, unsigned int len)
 {
 	unsigned int l;
 
-- 
1.7.2.3




More information about the barebox mailing list