1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-26 14:04:03 +03:00

macro: move IOVEC_SET_STRING into macro.h

This commit is contained in:
Lennart Poettering 2010-04-06 21:54:19 +02:00
parent e2c76839a3
commit 2fa086a8e0
2 changed files with 6 additions and 6 deletions

View File

@ -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];

View File

@ -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