diff options
Diffstat (limited to 'coccinelle')
-rw-r--r-- | coccinelle/iovec-make.cocci | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/coccinelle/iovec-make.cocci b/coccinelle/iovec-make.cocci index 62defe9400..7a0d4ced9b 100644 --- a/coccinelle/iovec-make.cocci +++ b/coccinelle/iovec-make.cocci @@ -22,3 +22,8 @@ expression s; @@ - IOVEC_MAKE(s, strlen(s)); + IOVEC_MAKE_STRING(s); +@@ +expression x, y, z; +@@ +- x = (struct iovec) { .iov_base = y, .iov_len = z }; ++ x = IOVEC_MAKE(y, z); |