diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-03-22 09:40:37 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-03-26 15:54:46 +0100 |
commit | 0aad30d4b58dadd82ba88d89b2d52dccaaac92c7 (patch) | |
tree | e46e683b5f35fd0f3495861b456072e4f26c921d /src/journal-remote | |
parent | sd-id128: move get_boot_id_for_machine() to id128-util.c (diff) | |
download | systemd-0aad30d4b58dadd82ba88d89b2d52dccaaac92c7.tar.xz systemd-0aad30d4b58dadd82ba88d89b2d52dccaaac92c7.zip |
logs-show: read the current boot ID if nothing specified for add_match_boot_id()
No functional change, just refactoring.
Diffstat (limited to 'src/journal-remote')
-rw-r--r-- | src/journal-remote/journal-gatewayd.c | 10 |
1 files changed, 1 insertions, 9 deletions
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; |