diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-06 21:54:19 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-06 21:54:19 +0200 |
commit | 2fa086a8e02b1b2d62a9a424b41944f3a2251e60 (patch) | |
tree | 01811fdc271ffb0eef58d1f2ce6cf4a5131019a2 | |
parent | e2c76839a3f6444072ae452605204c7113ffdc37 (diff) |
macro: move IOVEC_SET_STRING into macro.h
-rw-r--r-- | logger.c | 6 | ||||
-rw-r--r-- | macro.h | 6 |
2 files changed, 6 insertions, 6 deletions
@@ -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 |