Commit 2fa086a8 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

macro: move IOVEC_SET_STRING into macro.h

parent e2c76839
......@@ -86,12 +86,6 @@ struct Stream {
LIST_FIELDS(Stream, stream);
};
#define IOVEC_SET_STRING(iovec, s) \
do { \
(iovec).iov_base = s; \
(iovec).iov_len = strlen(s); \
} while(false);
static int stream_log(Stream *s, char *p, usec_t timestamp) {
char header_priority[16], header_time[64], header_pid[16];
......
......@@ -97,4 +97,10 @@ static inline size_t ALIGN(size_t l) {
#define char_array_0(x) x[sizeof(x)-1] = 0;
#define IOVEC_SET_STRING(iovec, s) \
do { \
(iovec).iov_base = s; \
(iovec).iov_len = strlen(s); \
} while(false);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment