From c36aa041f312c5b964ed029cb9168a66961ae1da Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Wed, 6 Jun 2012 15:17:19 +0200 Subject: [PATCH] Update coccinelle script to match syntax evolution. --- qa/coccinelle/access-pkt-packet.cocci | 4 ++-- qa/coccinelle/banned-functions.cocci | 2 +- qa/coccinelle/size_t.cocci | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qa/coccinelle/access-pkt-packet.cocci b/qa/coccinelle/access-pkt-packet.cocci index 3654a54419..681848ecf3 100644 --- a/qa/coccinelle/access-pkt-packet.cocci +++ b/qa/coccinelle/access-pkt-packet.cocci @@ -15,7 +15,7 @@ p->pkt = E; ) @pktfield depends on !init@ -identifier func !~= "^PacketCopyDataOffset$"; +identifier func !~ "^PacketCopyDataOffset$"; Packet *p; position p1; @@ @@ -35,7 +35,7 @@ import sys sys.exit(1) @pktlenfield@ -identifier func !~= "^PacketCopyDataOffset$"; +identifier func !~ "^PacketCopyDataOffset$"; Packet *p; position p1; @@ diff --git a/qa/coccinelle/banned-functions.cocci b/qa/coccinelle/banned-functions.cocci index 4a89b5ec64..f7343f2aa1 100644 --- a/qa/coccinelle/banned-functions.cocci +++ b/qa/coccinelle/banned-functions.cocci @@ -1,5 +1,5 @@ @banned@ -identifier func ~= "^\(sprintf\|strcat\|strcpy\|strncpy\|strncat\)$"; +identifier func =~ "^\(sprintf\|strcat\|strcpy\|strncpy\|strncat\)$"; position p1; @@ diff --git a/qa/coccinelle/size_t.cocci b/qa/coccinelle/size_t.cocci index 6363692b7b..ec1db56e7f 100644 --- a/qa/coccinelle/size_t.cocci +++ b/qa/coccinelle/size_t.cocci @@ -1,7 +1,7 @@ @sizet@ size_t p; -identifier func ~= "^\(sprintf\|printf\|SCLog.*\)$"; -identifier funcn ~= "^.*nprintf$"; +identifier func =~ "^\(sprintf\|printf\|SCLog.*\)$"; +identifier funcn =~ "^.*nprintf$"; position p1; typedef uint16_t; typedef uint32_t;