From 0aad30d4b58dadd82ba88d89b2d52dccaaac92c7 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 22 Mar 2024 17:40:37 +0900 Subject: logs-show: read the current boot ID if nothing specified for add_match_boot_id() No functional change, just refactoring. --- src/journal-remote/journal-gatewayd.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/journal-remote') diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c index c747253858..17565f260a 100644 --- a/src/journal-remote/journal-gatewayd.c +++ b/src/journal-remote/journal-gatewayd.c @@ -512,15 +512,7 @@ static mhd_result request_parse_arguments_iterator( } if (r) { - sd_id128_t bid; - - r = sd_id128_get_boot(&bid); - if (r < 0) { - log_error_errno(r, "Failed to get boot ID: %m"); - return MHD_NO; - } - - r = add_match_boot_id(m->journal, bid); + r = add_match_boot_id(m->journal, SD_ID128_NULL); if (r < 0) { m->argument_parse_error = r; return MHD_NO; -- cgit v1.2.3