summaryrefslogtreecommitdiff
path: root/src/journal/test-journal-match.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal/test-journal-match.c')
-rw-r--r--src/journal/test-journal-match.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/journal/test-journal-match.c b/src/journal/test-journal-match.c
index a3187053c9..4ebaa8b31a 100644
--- a/src/journal/test-journal-match.c
+++ b/src/journal/test-journal-match.c
@@ -21,14 +21,16 @@
#include <stdio.h>
-#include "systemd/sd-journal.h"
+#include "sd-journal.h"
+#include "alloc-util.h"
#include "journal-internal.h"
-#include "util.h"
#include "log.h"
+#include "string-util.h"
+#include "util.h"
int main(int argc, char *argv[]) {
- _cleanup_journal_close_ sd_journal*j;
+ _cleanup_(sd_journal_closep) sd_journal*j = NULL;
_cleanup_free_ char *t;
log_set_max_level(LOG_DEBUG);