diff options
author | dzwdz | 2022-08-23 20:17:03 +0200 |
---|---|---|
committer | dzwdz | 2022-08-23 20:17:03 +0200 |
commit | 975e592f85f05e98ef2b833e560e2c243b8491ec (patch) | |
tree | 7520b5f29dda12d480d1676a75831c30e19049b1 /src/shared/container/ring.c | |
parent | 38cf66edaacc4e58b561bea8a77abfd3facf59fe (diff) |
user/netstack: TCP recv
Diffstat (limited to 'src/shared/container/ring.c')
-rw-r--r-- | src/shared/container/ring.c | 2 |
1 files changed, 1 insertions, 1 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]); |