mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
DEV: coccinelle: Add rule to use chunk_istcat()
instead of chunk_strncat()
This replaces `chunk_strncat()` with `chunk_istcat()` if the parameters are the ist's `.ptr` and `.len`.
This commit is contained in:
parent
755d2419a4
commit
b9656e4837
@ -60,6 +60,14 @@ struct buffer *b;
|
|||||||
- chunk_memcat(b, \(i.ptr\|istptr(i)\) , \(i.len\|istlen(i)\));
|
- chunk_memcat(b, \(i.ptr\|istptr(i)\) , \(i.len\|istlen(i)\));
|
||||||
+ chunk_istcat(b, i);
|
+ chunk_istcat(b, i);
|
||||||
|
|
||||||
|
@@
|
||||||
|
struct ist i;
|
||||||
|
struct buffer *b;
|
||||||
|
@@
|
||||||
|
|
||||||
|
- chunk_strncat(b, \(i.ptr\|istptr(i)\) , \(i.len\|istlen(i)\));
|
||||||
|
+ chunk_istcat(b, i);
|
||||||
|
|
||||||
@@
|
@@
|
||||||
struct ist i;
|
struct ist i;
|
||||||
@@
|
@@
|
||||||
|
Loading…
Reference in New Issue
Block a user