Update nla_get_s8 function signature to accept non-const struct nlattr pointer for improved compatibility
This commit is contained in:
@@ -69,7 +69,7 @@ enum nlmsgerr_attrs {
|
|||||||
#ifndef NLA_S8
|
#ifndef NLA_S8
|
||||||
/* libnl < 3.3 does not define signed 8-bit attr helpers */
|
/* libnl < 3.3 does not define signed 8-bit attr helpers */
|
||||||
#define NLA_S8 NLA_U8
|
#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);
|
return (s8) nla_get_u8(nla);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user