]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DEV: coccinelle: Add a new pattern to ist.cocci
authorTim Duesterhus <tim@bastelstu.be>
Tue, 15 Mar 2022 12:11:07 +0000 (13:11 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 21 Mar 2022 07:30:47 +0000 (08:30 +0100)
This was previously ignored in "DEV: coccinelle: Fix incorrect replacement in ist.cocci",
but is now properly replaced by a simple `ist()` call.

dev/coccinelle/ist.cocci

index ea13d39d25f7c622422fc70c846d9830892bad59..acde626b0d43a93fa9ed2de8cb96e2f2e97eef14 100644 (file)
@@ -4,8 +4,9 @@ expression p, l;
 @@
 
 (
- i.ptr = p;
- i.len = strlen(i.ptr);
+- i.ptr = p;
+- i.len = strlen(i.ptr);
++ i = ist(p);
 |
 - i.ptr = p;
 - i.len = l;