From: joe@perches.com (Joe Perches) Date: Sat, 16 Aug 2014 13:59:23 -0700 Subject: [Cocci] cocci: char* indexing style for linux In-Reply-To: <1408219616.2683.101.camel@joe-AO725> References: <1408219616.2683.101.camel@joe-AO725> Message-ID: <1408222763.2683.107.camel@joe-AO725> To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr On Sat, 2014-08-16 at 13:06 -0700, Joe Perches wrote: > The suggested conversion to "sk->data + frame_size / 2[10]" > is not correct. Actually, that's rc14's uncompilable output. I started the email with 14 and upgraded before sending. rc21 does suggest a compilable output. I scanned it visually and didn't notice. rc21 suggests: (skb->data + frame_size / 2)[10]