Update nla_get_s8 function signature to accept non-const struct nlattr pointer for improved compatibility

This commit is contained in:
2026-04-06 15:36:06 +03:00
parent a46dc47ef9
commit f599ea1cac

View File

@@ -69,7 +69,7 @@ enum nlmsgerr_attrs {
#ifndef NLA_S8
/* libnl < 3.3 does not define signed 8-bit attr helpers */
#define NLA_S8 NLA_U8
static inline s8 nla_get_s8(const struct nlattr *nla)
static inline s8 nla_get_s8(struct nlattr *nla)
{
return (s8) nla_get_u8(nla);
}