[PATCH 4/4] util: remove invalid 'const' qualification

Christian Eggers <[email protected]> Wed, 25 Jun 2025 15:14:32 +0200
Newsgroups dev.linux.lists.ell
Message-ID <[email protected]>
l_put_be16() actually modifies the provided memory area
---
 ell/util.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ell/util.h b/ell/util.h
index 939391964ca1..da0741d2cbba 100644
--- a/ell/util.h
+++ b/ell/util.h
@@ -210,7 +210,7 @@ static inline void l_put_le16(uint16_t val, void *ptr)
 	L_PUT_UNALIGNED(L_CPU_TO_LE16(val), (uint16_t *) ptr);
 }
 
-static inline void l_put_be16(uint16_t val, const void *ptr)
+static inline void l_put_be16(uint16_t val, void *ptr)
 {
 	L_PUT_UNALIGNED(L_CPU_TO_BE16(val), (uint16_t *) ptr);
 }
-- 
2.43.0