From: Tim Duesterhus Date: Tue, 15 Mar 2022 12:11:07 +0000 (+0100) Subject: DEV: coccinelle: Add a new pattern to ist.cocci X-Git-Tag: v2.6-dev4~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14abfb61fb1784bbea30ec135e5b24440ba92b47;p=thirdparty%2Fhaproxy.git DEV: coccinelle: Add a new pattern to ist.cocci This was previously ignored in "DEV: coccinelle: Fix incorrect replacement in ist.cocci", but is now properly replaced by a simple `ist()` call. --- diff --git a/dev/coccinelle/ist.cocci b/dev/coccinelle/ist.cocci index ea13d39d25..acde626b0d 100644 --- a/dev/coccinelle/ist.cocci +++ b/dev/coccinelle/ist.cocci @@ -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;