]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Update coccinelle script to match syntax evolution.
authorEric Leblond <eric@regit.org>
Wed, 6 Jun 2012 13:17:19 +0000 (15:17 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 29 Jun 2012 11:10:02 +0000 (13:10 +0200)
qa/coccinelle/access-pkt-packet.cocci
qa/coccinelle/banned-functions.cocci
qa/coccinelle/size_t.cocci

index 3654a54419b1f97161dc06cd85f52d615fc21b6b..681848ecf347c0e97f6d208a97af5e6ee576baed 100644 (file)
@@ -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;
 @@
index 4a89b5ec645aa881aeb5e791272499b16d969011..f7343f2aa1e0178630d6523a4e7b775d399bf479 100644 (file)
@@ -1,5 +1,5 @@
 @banned@
-identifier func ~= "^\(sprintf\|strcat\|strcpy\|strncpy\|strncat\)$";
+identifier func =~ "^\(sprintf\|strcat\|strcpy\|strncpy\|strncat\)$";
 position p1;
 @@
 
index 6363692b7baf99e9d51b15a79deb5be4b3eb555f..ec1db56e7ff3e5a15461aa6ee04b1860d0d4ad6a 100644 (file)
@@ -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;