From 49615dbd8191e2b898496c5a90fdb35f92d4fdb9 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 24 Mar 2022 14:04:40 +0100 Subject: journal-file: merge compress/seal bool args into a single flags param Just some modernization/refactoring. No change in behaviour, just let's do how we do things these days: use flags param instead of list of bools. --- src/journal-remote/journal-remote-main.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/journal-remote/journal-remote-main.c') diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c index beb73f3572..7c3c9ff44a 100644 --- a/src/journal-remote/journal-remote-main.c +++ b/src/journal-remote/journal-remote-main.c @@ -223,9 +223,7 @@ static int process_http_upload( finished = true; for (;;) { - r = process_source(source, - journal_remote_server_global->compress, - journal_remote_server_global->seal); + r = process_source(source, journal_remote_server_global->file_flags); if (r == -EAGAIN) break; if (r < 0) { @@ -599,7 +597,12 @@ static int create_remoteserver( int r, n, fd; - r = journal_remote_server_init(s, arg_output, arg_split_mode, arg_compress, arg_seal); + r = journal_remote_server_init( + s, + arg_output, + arg_split_mode, + (arg_compress ? JOURNAL_COMPRESS : 0) | + (arg_seal ? JOURNAL_SEAL : 0)); if (r < 0) return r; -- cgit v1.2.3