aboutsummaryrefslogtreecommitdiffstats
path: root/tc/q_rr.c
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 /tc/q_rr.c
parent49b730d7b237a3c0b2361e77877228199f32cf9c (diff)
downloadplatform_external_iproute2-ff24746cca1ef0c92d46614158e6672acd6b63d3.tar.gz
platform_external_iproute2-ff24746cca1ef0c92d46614158e6672acd6b63d3.tar.bz2
platform_external_iproute2-ff24746cca1ef0c92d46614158e6672acd6b63d3.zip
Convert to use rta_getattr_ functions
User new functions (inspired by libmnl) to do type safe access of routeing attributes
Diffstat (limited to 'tc/q_rr.c')
-rw-r--r--tc/q_rr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tc/q_rr.c b/tc/q_rr.c
index 1ff3ac96..79072ade 100644
--- a/tc/q_rr.c
+++ b/tc/q_rr.c
@@ -107,7 +107,7 @@ int rr_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
if (tb[TCA_PRIO_MQ])
fprintf(f, " multiqueue: %s ",
- *(unsigned char *)RTA_DATA(tb[TCA_PRIO_MQ]) ? "on" : "off");
+ rta_getattr_u8(tb[TCA_PRIO_MQ]) ? "on" : "off");
return 0;
}