summaryrefslogtreecommitdiff
path: root/src/journal/test-journal-stream.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-08-02 11:01:10 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-08-02 11:25:45 -0400
commit3b6c7e78cf38c1cad8fbb44d21e40ebf69c7cc77 (patch)
tree01f4c5d87575f0021072928c89aca396eff332fe /src/journal/test-journal-stream.c
parenta217fdc98eab936502003c970e93f24d5f00a034 (diff)
tests: add a program for repetitive opening and closing of the journal
Basically wraps an example provided by George McCollister. Should help with leaks in the future.
Diffstat (limited to 'src/journal/test-journal-stream.c')
-rw-r--r--src/journal/test-journal-stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/test-journal-stream.c b/src/journal/test-journal-stream.c
index 4aba7febc7..6b32b252e8 100644
--- a/src/journal/test-journal-stream.c
+++ b/src/journal/test-journal-stream.c
@@ -75,7 +75,7 @@ int main(int argc, char *argv[]) {
JournalFile *one, *two, *three;
char t[] = "/tmp/journal-stream-XXXXXX";
unsigned i;
- _cleanup_journal_close_ sd_journal*j = NULL;
+ _cleanup_journal_close_ sd_journal *j = NULL;
char *z;
const void *data;
size_t l;