diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2017-06-08 08:59:25 (GMT) |
---|---|---|
committer | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2017-06-08 08:59:25 (GMT) |
commit | 1d5ad3938b4f71980709d00b922ad77e132e1a30 (patch) | |
tree | dd4b77e2b9147ed16df82a9f728b2162154ac213 /lib/route | |
parent | f0e3d127cbb45a9b03b6cf37b34e74433d8064bf (diff) | |
download | libnl-1d5ad3938b4f71980709d00b922ad77e132e1a30.zip libnl-1d5ad3938b4f71980709d00b922ad77e132e1a30.tar.gz libnl-1d5ad3938b4f71980709d00b922ad77e132e1a30.tar.bz2 |
lib/route/cls/u32.c: let the compiler do pointer arithmetic
This is what ->, [] and & are for.
Diffstat (limited to 'lib/route')
-rw-r--r-- | lib/route/cls/u32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/route/cls/u32.c b/lib/route/cls/u32.c index 2ea9bd4..82b5665 100644 --- a/lib/route/cls/u32.c +++ b/lib/route/cls/u32.c @@ -264,7 +264,7 @@ static void print_selector(struct nl_dump_params *p, struct tc_u32_sel *sel, for (i = 0; i < sel->nkeys; i++) { - key = (struct tc_u32_key *) ((char *) sel + sizeof(*sel)) + i; + key = &sel->keys[i]; nl_dump(p, "\n"); nl_dump_line(p, " match key at %s%u ", |