summaryrefslogtreecommitdiffstats
path: root/src/journal/test-journal-flush.c
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2022-02-02 15:30:50 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2022-02-02 15:39:39 +0100
commitd02af6f33b69c1335f338e941c8fafb3c2b1a390 (patch)
tree6634305f7e20a3b242564260af3bf8f21ac1d1a2 /src/journal/test-journal-flush.c
parentnetwork: update operational state when we remove an address (diff)
downloadsystemd-d02af6f33b69c1335f338e941c8fafb3c2b1a390.tar.xz
systemd-d02af6f33b69c1335f338e941c8fafb3c2b1a390.zip
journal: Rename JournaldFile to ManagedJournalFile
JournalFile and JournaldFile are hard to distinguish from each other. Let's use ManagedJournalFile instead to make the distinction more clear.
Diffstat (limited to 'src/journal/test-journal-flush.c')
-rw-r--r--src/journal/test-journal-flush.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/journal/test-journal-flush.c b/src/journal/test-journal-flush.c
index dc05126b57..6af819f733 100644
--- a/src/journal/test-journal-flush.c
+++ b/src/journal/test-journal-flush.c
@@ -7,9 +7,9 @@
#include "alloc-util.h"
#include "chattr-util.h"
-#include "journald-file.h"
#include "journal-internal.h"
#include "macro.h"
+#include "managed-journal-file.h"
#include "path-util.h"
#include "string-util.h"
@@ -17,7 +17,7 @@ int main(int argc, char *argv[]) {
_cleanup_(mmap_cache_unrefp) MMapCache *m = NULL;
_cleanup_free_ char *fn = NULL;
char dn[] = "/var/tmp/test-journal-flush.XXXXXX";
- JournaldFile *new_journal = NULL;
+ ManagedJournalFile *new_journal = NULL;
sd_journal *j = NULL;
unsigned n = 0;
int r;
@@ -29,7 +29,7 @@ int main(int argc, char *argv[]) {
fn = path_join(dn, "test.journal");
- r = journald_file_open(-1, fn, O_CREAT|O_RDWR, 0644, false, 0, false, NULL, m, NULL, NULL, &new_journal);
+ r = managed_journal_file_open(-1, fn, O_CREAT|O_RDWR, 0644, false, 0, false, NULL, m, NULL, NULL, &new_journal);
assert_se(r >= 0);
if (argc > 1)
@@ -66,7 +66,7 @@ int main(int argc, char *argv[]) {
sd_journal_close(j);
- (void) journald_file_close(new_journal);
+ (void) managed_journal_file_close(new_journal);
unlink(fn);
assert_se(rmdir(dn) == 0);