cmogstored 1.8.1 - use default system stack size
[cmogstored.git] / iov_str.h
blobe392563c58fbd758af8a9c56ee7868f432d20ed0
1 /*
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>
4 */
5 static void iov_str(struct iovec *iov, const char *str, size_t len)
7 union { const char *in; char *out; } deconst;
9 deconst.in = str;
10 iov->iov_base = deconst.out;
11 iov->iov_len = len;
14 #define IOV_STR(iov,str) iov_str((iov),(str),sizeof(str)-1)