2 * Copyright (C) 2012-2020 all contributors <cmogstored-public@yhbt.net>
3 * License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt>
5 static void iov_str(struct iovec
*iov
, const char *str
, size_t len
)
7 union { const char *in
; char *out
; } deconst
;
10 iov
->iov_base
= deconst
.out
;
14 #define IOV_STR(iov,str) iov_str((iov),(str),sizeof(str)-1)