summaryrefslogtreecommitdiff
path: root/coccinelle
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-11-27 10:34:32 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-11-28 13:08:19 +0900
commitcb3108669d623afe58a36077e36ae4c66ff7d1c3 (patch)
treeca18128fa900fd2c2fcea59a30743cc1c1ba73a0 /coccinelle
parent324ca05459422b55cb6fa04318552541159c239a (diff)
downloadsystemd-cb3108669d623afe58a36077e36ae4c66ff7d1c3.tar.gz
tree-wide: more IOVEC_MAKE() conversions
Diffstat (limited to 'coccinelle')
-rw-r--r--coccinelle/iovec-make.cocci5
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);