mirror of https://gitee.com/openkylin/systemd.git
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);
|