chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
macro: move IOVEC_SET_STRING into macro.h
[elogind.git]
/
logger.c
diff --git
a/logger.c
b/logger.c
index 8ce9685c62a4494509a5d92a078c2708a1d17f81..46cce5f09d074747ac84748fd5ccd071f9d49793 100644
(file)
--- a/
logger.c
+++ b/
logger.c
@@
-86,12
+86,6
@@
struct Stream {
LIST_FIELDS(Stream, 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];
static int stream_log(Stream *s, char *p, usec_t timestamp) {
char header_priority[16], header_time[64], header_pid[16];