]> rtime.felk.cvut.cz Git - lisovros/iproute2_canprio.git/commitdiff
Add cast to rta_getattr_str
authorStephen Hemminger <shemminger@vyatta.com>
Mon, 6 Feb 2012 17:35:27 +0000 (09:35 -0800)
committerStephen Hemminger <shemminger@vyatta.com>
Mon, 6 Feb 2012 17:35:27 +0000 (09:35 -0800)
Warning from C++

include/libnetlink.h

index b0656ce293a8327c7bad9c9fc9f35b45ec7c172c..b85c37787e1906abe99690d76624f2f9dfca13cf 100644 (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,