mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
64b92d637c
Since those are chunks of code based on our codebase, it's easiest to use the same license.
31 lines
504 B
Plaintext
31 lines
504 B
Plaintext
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
@@
|
|
expression x, y, p, l;
|
|
@@
|
|
- x[y].iov_base = p;
|
|
- x[y].iov_len = l;
|
|
- y++;
|
|
+ x[y++] = IOVEC_MAKE(p, l);
|
|
@@
|
|
expression x, p, l;
|
|
@@
|
|
- x.iov_base = p;
|
|
- x.iov_len = l;
|
|
+ x = IOVEC_MAKE(p, l);
|
|
@@
|
|
expression x, p, l;
|
|
@@
|
|
- x->iov_base = p;
|
|
- x->iov_len = l;
|
|
+ *x = IOVEC_MAKE(p, l);
|
|
@@
|
|
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);
|