Skip to content
Commit 0bb85751 authored by Sven Eckelmann's avatar Sven Eckelmann
Browse files

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: default avatarSven Eckelmann <sven@narfation.org>
parent f5d33d37
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment