mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-11 16:29:36 +00: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_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 New Issue
Block a user