]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journalctl: drop format_journal_url() if gcrypt is not used
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 29 Oct 2020 07:11:40 +0000 (16:11 +0900)
committerVito Caputo <vcaputo@pengaru.com>
Thu, 29 Oct 2020 07:28:28 +0000 (00:28 -0700)
Follow-up for f1b823596f8a4dc6b1f76206b7473bac71e3840b.

src/journal/journalctl.c

index 4014b8aad2ec04842a4a7ef5475d547dfe9a66a0..8bc0aa22dea5bed2f24ef04edaec0449be73b466 100644 (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