From 7cc87bc02a80f33250db610026ddbce45fc554fd Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Fri, 20 Dec 2013 10:23:39 +0100 Subject: [PATCH] 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. --- qa/coccinelle/banned-functions.cocci | 2 +- qa/coccinelle/size_t.cocci | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.3