From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Tue, 13 Nov 2012 18:29:58 +0800 References: <1352749701-19288-1-git-send-email-ordex@autistici.org> In-Reply-To: <1352749701-19288-1-git-send-email-ordex@autistici.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201211131829.58637.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH next] batman-adv: remove useless !! when converting to bool 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: b.a.t.m.a.n@lists.open-mesh.org On Tuesday, November 13, 2012 03:48:21 Antonio Quartulli wrote: > In C standard any expression different from 0 will be converted to > 'true' when casting to bool (whatever is the length of the value). > Therefore the "!!" conversion can be removed. > > This was introduced by 3fbd7ac8c71b3778c5751b3d096ea36f96ef534e > ("batman-adv: substitute tt_poss_change with a per-tt_entry flag") > > Signed-off-by: Antonio Quartulli > --- > translation-table.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied in revision 7f05664. Thanks, Marek