From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Sun, 22 May 2011 11:14:20 +0200 References: <201105192141.18647.sven@narfation.org> <1305834188-15514-1-git-send-email-sven@narfation.org> In-Reply-To: <1305834188-15514-1-git-send-email-sven@narfation.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201105221114.21124.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: Check type of x and y in seq_(before|after) Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Thursday 19 May 2011 21:43:08 Sven Eckelmann wrote: > 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". Applied in revision 288421e. Thanks, Marek