From d068a95304a57306b732f45a5105be0357886f7c Mon Sep 17 00:00:00 2001 From: Oto Šťáva Date: Wed, 10 Jul 2024 16:38:26 +0200 Subject: drop libknot <=3.2.x support --- lib/resolve.c | 4 ---- lib/utils.c | 4 ---- 2 files changed, 8 deletions(-) (limited to 'lib') diff --git a/lib/resolve.c b/lib/resolve.c index ec00b215..4730f105 100644 --- a/lib/resolve.c +++ b/lib/resolve.c @@ -246,11 +246,7 @@ static int pkt_padding(knot_pkt_t *packet, int32_t padding) if (padding == -1) { /* use the default padding policy from libknot */ const size_t block_size = knot_wire_get_qr(packet->wire) ? KNOT_EDNS_ALIGNMENT_RESPONSE_DEFAULT - #if KNOT_VERSION_HEX < 0x030200 - : KNOT_EDNS_ALIGNMENT_QUERY_DEFALT; - #else : KNOT_EDNS_ALIGNMENT_QUERY_DEFAULT; - #endif pad_bytes = knot_edns_alignment_size(packet->size, knot_rrset_size(opt_rr), block_size); } diff --git a/lib/utils.c b/lib/utils.c index 2a0635e0..d04f5467 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -1198,11 +1198,7 @@ char *kr_pkt_text(const knot_pkt_t *pkt) const knot_dump_style_t KR_DUMP_STYLE_DEFAULT = { /* almost all = false, */ .show_ttl = true, -#if KNOT_VERSION_HEX >= 0x030200 .human_timestamp = true, -#else - .human_tmstamp = true, -#endif }; char *kr_rrset_text(const knot_rrset_t *rr) -- cgit v1.2.3