mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04: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
1 changed files with 8 additions and 0 deletions
|
|
@ -60,6 +60,14 @@ struct buffer *b;
|
|||
- chunk_memcat(b, \(i.ptr\|istptr(i)\) , \(i.len\|istlen(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;
|
||||
@@
|
||||
|
|
|
|||
Loading…
Reference in a new issue