journalctl: drop format_journal_url() if gcrypt is not used

Follow-up for f1b823596f.
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