From: Vladimír Čunát Date: Tue, 6 Feb 2024 07:55:25 +0000 (+0100) Subject: libknot 3.4 compat X-Git-Tag: v6.0.6~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c2052f893dcace799f6a464a6ec300a2364bf28;p=thirdparty%2Fknot-resolver.git libknot 3.4 compat This extends the new 5.x commit 673c8d2b56b6. Now I can build fine against knot-dns master again. --- diff --git a/lib/rules/zonefile.c b/lib/rules/zonefile.c index d29ae35e2..b5cc4a646 100644 --- a/lib/rules/zonefile.c +++ b/lib/rules/zonefile.c @@ -153,7 +153,7 @@ static bool owner_relativize(zs_scanner_t *s) } return false; } - const int len = knot_dname_prefixlen(s->r_owner, labels, NULL); + const int len = kr_dname_prefixlen(s->r_owner, labels); s->r_owner[len] = '\0'; // not very nice but safe at this point return true; }