1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00

journalctl: drop format_journal_url() if gcrypt is not used

Follow-up for f1b823596f8a4dc6b1f76206b7473bac71e3840b.
This commit is contained in:
Yu Watanabe 2020-10-29 16:11:40 +09:00 committed by Vito Caputo
parent 50f7b8fb28
commit 7b6c92e6bb

View File

@ -1779,6 +1779,7 @@ static int add_syslog_identifier(sd_journal *j) {
return 0;
}
#if HAVE_GCRYPT
static int format_journal_url(
const void *seed,
size_t seed_size,
@ -1825,6 +1826,7 @@ static int format_journal_url(
*ret_url = TAKE_PTR(url);
return 0;
}
#endif
static int setup_keys(void) {
#if HAVE_GCRYPT