Merge pull request #37 from wrl/master

ck_ring: make arguments to ck_ring_size() and ck_ring_capacity() const
ck_pring
cognet 10 years ago
commit b6778ba653

@ -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;
}

Loading…
Cancel
Save