From: Vladimír Čunát Date: Mon, 4 Feb 2019 13:59:58 +0000 (+0100) Subject: fixup! lib/generic/trie: sync the new version from knot-dns X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Ftrie-new;p=thirdparty%2Fknot-resolver.git fixup! lib/generic/trie: sync the new version from knot-dns --- diff --git a/lib/generic/trie.c b/lib/generic/trie.c index d59aeaa4d..efbb659a7 100644 --- a/lib/generic/trie.c +++ b/lib/generic/trie.c @@ -538,7 +538,7 @@ static void ns_init(nstack_t *ns, trie_t *tbl) static inline trie_t * ns_gettrie(nstack_t *ns) { assert(ns && ns->stack && ns->stack[0]); - return (struct trie *)&ns->stack[0]; + return (struct trie *)ns->stack[0]; } /*! \brief Free inside of the stack, i.e. not the passed pointer itself. */ diff --git a/lib/generic/trie.h b/lib/generic/trie.h index d941d3c0d..cad4faa3c 100644 --- a/lib/generic/trie.h +++ b/lib/generic/trie.h @@ -32,7 +32,7 @@ * - key lengths are limited by 2^32-1 ATM * * XXX EDITORS: trie.{h,c} are synced from - * https://gitlab.labs.nic.cz/knot/knot-dns src/contrib/qp-trie tree 5a07850389039 + * https://gitlab.labs.nic.cz/knot/knot-dns src/contrib/qp-trie tree 0193b76f03 * only with tiny adjustments, mostly #includes and KR_EXPORT. */