From: Eric Leblond Date: Fri, 20 Dec 2013 09:23:39 +0000 (+0100) Subject: coccinelle: protecting regexp operator is not needed X-Git-Tag: suricata-2.0rc1~240 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7cc87bc02a80f33250db610026ddbce45fc554fd;p=thirdparty%2Fsuricata.git coccinelle: protecting regexp operator is not needed It seems there was an evolution of coccinelle and the protection of regexp is not necessary anymore. And doing it causing the expression not to match. --- diff --git a/qa/coccinelle/banned-functions.cocci b/qa/coccinelle/banned-functions.cocci index f7343f2aa1..03f3438536 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 ec1db56e7f..4bd5b9f26c 100644 --- a/qa/coccinelle/size_t.cocci +++ b/qa/coccinelle/size_t.cocci @@ -1,6 +1,6 @@ @sizet@ size_t p; -identifier func =~ "^\(sprintf\|printf\|SCLog.*\)$"; +identifier func =~ "^(sprintf|printf|SCLog.*)$"; identifier funcn =~ "^.*nprintf$"; position p1; typedef uint16_t;