diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/container/ring.c | 2 | ||||
-rw-r--r-- | src/shared/container/ring.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/container/ring.c b/src/shared/container/ring.c index 21c63a1..9bf8d61 100644 --- a/src/shared/container/ring.c +++ b/src/shared/container/ring.c @@ -18,7 +18,7 @@ size_t ring_avail(ring_t *r) { return r->capacity - ring_used(r); } -void ring_put(ring_t *r, void *buf, size_t len) { +void ring_put(ring_t *r, const void *buf, size_t len) { // TODO do something similar to ring_get for (size_t i = 0; i < len; i++) ring_put1b(r, ((uint8_t*)buf)[i]); diff --git a/src/shared/container/ring.h b/src/shared/container/ring.h index 4f0d310..dbaf331 100644 --- a/src/shared/container/ring.h +++ b/src/shared/container/ring.h @@ -13,7 +13,7 @@ size_t ring_used(ring_t*); /** Returns amount of space left in the buffer. */ size_t ring_avail(ring_t*); -void ring_put(ring_t*, void*, size_t); +void ring_put(ring_t*, const void*, size_t); void ring_put1b(ring_t*, uint8_t); size_t ring_get(ring_t*, void*, size_t); |