mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 18:04:05 +03:00
macro: move IOVEC_SET_STRING into macro.h
This commit is contained in:
parent
e2c76839a3
commit
2fa086a8e0
6
logger.c
6
logger.c
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user