aboutsummaryrefslogtreecommitdiffstats
path: root/genl
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-04-10 08:47:55 -0700
committerStephen Hemminger <shemminger@vyatta.com>2012-04-10 08:47:55 -0700
commitff24746cca1ef0c92d46614158e6672acd6b63d3 (patch)
tree05c1317f25238efa48ec7f79cdb82c4044175dbe /genl
parent49b730d7b237a3c0b2361e77877228199f32cf9c (diff)
downloadiproute2-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/genl/ctrl.c b/genl/ctrl.c
index 58d13bedc..6d97c2690 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: