From: Sven Eckelmann Date: Thu, 19 May 2011 19:43:08 +0000 (+0200) Subject: batman-adv: Check type of x and y in seq_(before|after) X-Git-Tag: v3.1-rc1~316^2~412^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bb857511b6a1572ad15dfd7f23d79587d7e2781;p=pandora-kernel.git 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 --- Reading git-diff-tree failed