Add cast to rta_getattr_str

Warning from C++
This commit is contained in:
Stephen Hemminger 2012-02-06 09:35:27 -08:00
parent a3fd8e58c1
commit cfd2cbd15f
1 changed files with 1 additions and 1 deletions

View File

@ -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,