diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-27 10:34:32 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-28 05:08:19 +0100 |
commit | cb3108669d623afe58a36077e36ae4c66ff7d1c3 (patch) | |
tree | ca18128fa900fd2c2fcea59a30743cc1c1ba73a0 /coccinelle | |
parent | test: make TEST-27 non-racy (diff) | |
download | systemd-cb3108669d623afe58a36077e36ae4c66ff7d1c3.tar.xz systemd-cb3108669d623afe58a36077e36ae4c66ff7d1c3.zip |
tree-wide: more IOVEC_MAKE() conversions
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); |