net: lwm2m: encapsulate ring buffer internals

Use struct ring_buf_index as a whole, don't access its constituants.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2 files changed