]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Don't do pointer arithmetic with void*
authorSven Eckelmann <sven@narfation.org>
Sat, 14 May 2011 21:14:49 +0000 (23:14 +0200)
committerSven Eckelmann <sven@narfation.org>
Mon, 30 May 2011 05:39:30 +0000 (07:39 +0200)
commit23092a6b706ce99b6d7bfe464d9c529e2bfa6208
treef0a64eaf3709c5ca1455a1c66ce0a9c22c5c4961
parent35e0a505601701edd02a99dab5929a7b5466ad19
batman-adv: Don't do pointer arithmetic with void*

The size of void is currently set by gcc to 1, but is not well defined
in general. Therefore it is more advisable to cast it to char* before
doing pointer arithmetic.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/originator.c