diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-26 21:52:36 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-11-27 10:12:27 +0100 |
commit | 5cfa2c3dc09ffed16e3ad249e893911e372d3ed0 (patch) | |
tree | 11a7f2aec6fba69fbdfdfdf51e189523d95ecc83 /src/journal/test-journal-interleaving.c | |
parent | eaf63697696308471c96c3f6c88fddb1907b1e1b (diff) | |
download | systemd-5cfa2c3dc09ffed16e3ad249e893911e372d3ed0.tar.gz |
tree-wide: use IOVEC_MAKE() at many places
Diffstat (limited to 'src/journal/test-journal-interleaving.c')
-rw-r--r-- | src/journal/test-journal-interleaving.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/journal/test-journal-interleaving.c b/src/journal/test-journal-interleaving.c index 6d282e01fa..cf0561df61 100644 --- a/src/journal/test-journal-interleaving.c +++ b/src/journal/test-journal-interleaving.c @@ -6,13 +6,14 @@ #include "sd-journal.h" #include "alloc-util.h" +#include "io-util.h" #include "journal-file.h" #include "journal-vacuum.h" #include "log.h" #include "parse-util.h" #include "rm-rf.h" -#include "util.h" #include "tests.h" +#include "util.h" /* This program tests skipping around in a multi-file journal. */ @@ -58,8 +59,7 @@ static void append_number(JournalFile *f, int n, uint64_t *seqnum) { previous_ts = ts; assert_se(asprintf(&p, "NUMBER=%d", n) >= 0); - iovec[0].iov_base = p; - iovec[0].iov_len = strlen(p); + iovec[0] = IOVEC_MAKE_STRING(p); assert_ret(journal_file_append_entry(f, &ts, NULL, iovec, 1, seqnum, NULL, NULL)); free(p); } |