diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2012-04-10 08:47:55 -0700 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2012-04-10 08:47:55 -0700 |
commit | ff24746cca1ef0c92d46614158e6672acd6b63d3 (patch) | |
tree | 05c1317f25238efa48ec7f79cdb82c4044175dbe /genl | |
parent | 49b730d7b237a3c0b2361e77877228199f32cf9c (diff) | |
download | iproute2-ff24746cca1ef0c92d46614158e6672acd6b63d3.tar.gz |
Convert to use rta_getattr_ functions
User new functions (inspired by libmnl) to do type safe access
of routeing attributes
Diffstat (limited to 'genl')
-rw-r--r-- | genl/ctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/genl/ctrl.c b/genl/ctrl.c index 58d13bed..6d97c269 100644 --- a/genl/ctrl.c +++ b/genl/ctrl.c @@ -104,7 +104,7 @@ int genl_ctrl_resolve_family(const char *family) goto errout; } - ret = *(__u16 *) RTA_DATA(tb[CTRL_ATTR_FAMILY_ID]); + ret = rta_getattr_u16(tb[CTRL_ATTR_FAMILY_ID]); } errout: |