diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2020-10-29 08:11:40 +0100 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-10-29 08:28:28 +0100 |
commit | 7b6c92e6bbbd8b48e73ca34ed3033beaa853381a (patch) | |
tree | 3f900e32dde147fb80cb03bb2217acc1411bc51a /src/journal | |
parent | Update org.freedesktop.hostname1 documentation (diff) | |
download | systemd-7b6c92e6bbbd8b48e73ca34ed3033beaa853381a.tar.xz systemd-7b6c92e6bbbd8b48e73ca34ed3033beaa853381a.zip |
journalctl: drop format_journal_url() if gcrypt is not used
Follow-up for f1b823596f8a4dc6b1f76206b7473bac71e3840b.
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journalctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c index 4014b8aad2..8bc0aa22de 100644 --- a/src/journal/journalctl.c +++ b/src/journal/journalctl.c @@ -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 |