From e9d96eb9f6d5e78a847b4a1d79084a9afae8d248 Mon Sep 17 00:00:00 2001 From: William Light Date: Sun, 17 May 2015 02:55:53 +0200 Subject: [PATCH] ck_ring: make a few arguments const --- include/ck_ring.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/ck_ring.h b/include/ck_ring.h index a4e84c8..009d186 100644 --- a/include/ck_ring.h +++ b/include/ck_ring.h @@ -53,7 +53,7 @@ struct ck_ring_buffer { typedef struct ck_ring_buffer ck_ring_buffer_t; CK_CC_INLINE static unsigned int -ck_ring_size(struct ck_ring *ring) +ck_ring_size(const struct ck_ring *ring) { unsigned int c, p; @@ -63,9 +63,8 @@ ck_ring_size(struct ck_ring *ring) } CK_CC_INLINE static unsigned int -ck_ring_capacity(struct ck_ring *ring) +ck_ring_capacity(const struct ck_ring *ring) { - return ring->size; }