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.
pull/757/head
Eric Leblond 12 years ago committed by Victor Julien
parent 8a5a30ba40
commit 7cc87bc02a

@ -1,5 +1,5 @@
@banned@
identifier func =~ "^\(sprintf\|strcat\|strcpy\|strncpy\|strncat\)$";
identifier func =~ "^(sprintf|strcat|strcpy|strncpy|strncat)$";
position p1;
@@

@ -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;

Loading…
Cancel
Save