chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
systemctl: when status is called without arguments show pager
[elogind.git]
/
src
/
journal
/
test-journal-enum.c
diff --git
a/src/journal/test-journal-enum.c
b/src/journal/test-journal-enum.c
index 8a843ecdda7dfcdb4cfd141362e37feab47436f8..980244e0163ecb471f52b0a5b33526e60c3fe726 100644
(file)
--- a/
src/journal/test-journal-enum.c
+++ b/
src/journal/test-journal-enum.c
@@
-23,10
+23,13
@@
#include "log.h"
#include "sd-journal.h"
#include "log.h"
#include "sd-journal.h"
+#include "macro.h"
+#include "util.h"
+#include "journal-internal.h"
int main(int argc, char *argv[]) {
unsigned n = 0;
int main(int argc, char *argv[]) {
unsigned n = 0;
-
sd_journal *j
;
+
_cleanup_journal_close_ sd_journal*j = NULL
;
log_set_max_level(LOG_DEBUG);
log_set_max_level(LOG_DEBUG);
@@
-48,6
+51,5
@@
int main(int argc, char *argv[]) {
break;
}
break;
}
- sd_journal_close(j);
return 0;
}
return 0;
}