]> git.ipfire.org Git - thirdparty/systemd.git/blob - coccinelle/iovec-make.cocci
test: Disable LUKS devices from initramfs in QEMU tests
[thirdparty/systemd.git] / coccinelle / iovec-make.cocci
1 @@
2 expression x, y, p, l;
3 @@
4 - x[y].iov_base = p;
5 - x[y].iov_len = l;
6 - y++;
7 + x[y++] = IOVEC_MAKE(p, l);
8 @@
9 expression x, p, l;
10 @@
11 - x.iov_base = p;
12 - x.iov_len = l;
13 + x = IOVEC_MAKE(p, l);
14 @@
15 expression x, p, l;
16 @@
17 - x->iov_base = p;
18 - x->iov_len = l;
19 + *x = IOVEC_MAKE(p, l);
20 @@
21 expression s;
22 @@
23 - IOVEC_MAKE(s, strlen(s));
24 + IOVEC_MAKE_STRING(s);
25 @@
26 expression x, y, z;
27 @@
28 - x = (struct iovec) { .iov_base = y, .iov_len = z };
29 + x = IOVEC_MAKE(y, z);