From: Victor Julien Date: Sat, 15 Oct 2022 08:35:39 +0000 (+0200) Subject: cocci: remove action check as we no longer use macros X-Git-Tag: suricata-6.0.9~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8212%2Fhead;p=thirdparty%2Fsuricata.git cocci: remove action check as we no longer use macros (cherry picked from commit 34ee53e5ec1cdefe574bdfee55ef674217997ea9) --- diff --git a/qa/coccinelle/Makefile.am b/qa/coccinelle/Makefile.am index 36f2724b7f..1f78a74b72 100644 --- a/qa/coccinelle/Makefile.am +++ b/qa/coccinelle/Makefile.am @@ -1,5 +1,4 @@ EXTRA_DIST= access-pkt-packet.cocci \ - action-pkt.cocci \ banned-functions.cocci \ direct-packet.cocci \ malloc-error-check.cocci \ diff --git a/qa/coccinelle/action-pkt.cocci b/qa/coccinelle/action-pkt.cocci deleted file mode 100644 index 1392d5e8ef..0000000000 --- a/qa/coccinelle/action-pkt.cocci +++ /dev/null @@ -1,15 +0,0 @@ -@action@ -typedef Packet; -Packet *p; -position p1; -@@ - -p->action@p1 - -@ script:python @ -p1 << action.p1; -@@ - -print("Invalid usage of p->action, please use macro at %s:%s" % (p1[0].file, p1[0].line)) -import sys -sys.exit(1)