Commit cfd2cbd1 authored by Stephen Hemminger's avatar Stephen Hemminger

Add cast to rta_getattr_str

Warning from C++
parent a3fd8e58
......@@ -87,7 +87,7 @@ static inline __u64 rta_getattr_u64(const struct rtattr *rta)
}
static inline const char *rta_getattr_str(const struct rtattr *rta)
{
return RTA_DATA(rta);
return (const char *)RTA_DATA(rta);
}
extern int rtnl_listen(struct rtnl_handle *, rtnl_filter_t handler,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment