diff options
author | Sven Eckelmann <sven@narfation.org> | 2011-05-19 21:43:08 +0200 |
---|---|---|
committer | Sven Eckelmann <sven@narfation.org> | 2011-05-30 07:39:35 +0200 |
commit | 0bb857511b6a1572ad15dfd7f23d79587d7e2781 (patch) | |
tree | 6eb43658148c45033ba4f57f7ccb02add30262d9 /net/batman-adv/routing.c | |
parent | f5d33d37786af139cecde5af831d64a671bb756b (diff) | |
download | op-kernel-dev-0bb857511b6a1572ad15dfd7f23d79587d7e2781.zip op-kernel-dev-0bb857511b6a1572ad15dfd7f23d79587d7e2781.tar.gz |
batman-adv: Check type of x and y in seq_(before|after)
seq_before and seq_after depend on the fact that both sequence numbers
have the same type and thus the same bitwidth. We can ensure that by
compile time checking using a compare between the pointer to the
temporary buffers which were created using the typeof of both
parameters. For example gcc would create a warning like
"warning: comparison of distinct pointer types lacks a cast".
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/routing.c')
0 files changed, 0 insertions, 0 deletions