]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - coccinelle/iovec-make.cocci
Make fopen_temporary and fopen_temporary_label unlocked
[thirdparty/systemd.git] / coccinelle / iovec-make.cocci
index 62defe940022ceecf625f72a9f44be47cb88582d..7a0d4ced9b8f278f8e7f67bb6f4cfe824fd20b9c 100644 (file)
@@ -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);