]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
hints: remove unused code
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 15 Jun 2017 07:48:21 +0000 (09:48 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 15 Jun 2017 14:39:21 +0000 (16:39 +0200)
modules/hints/hints.c

index 48dc1f5d43357af9944ef722f597831aabc46c0b..74c9e7f3c8f8071e0b7f90aa8515b1f1a4f9ed2c 100644 (file)
@@ -50,17 +50,6 @@ static char * bool2jsonstr(bool val)
        return result;
 }
 
-/* Structure for reverse search (address to domain) */
-struct rev_search_baton {
-       knot_pkt_t *pkt;
-       const knot_dname_t *name;
-       union {
-               struct in_addr ip4;
-               struct in6_addr ip6;
-       } addr;
-       size_t addr_len;
-};
-
 static int put_answer(knot_pkt_t *pkt, knot_rrset_t *rr)
 {
        int ret = 0;
@@ -82,13 +71,6 @@ static int put_answer(knot_pkt_t *pkt, knot_rrset_t *rr)
        return ret;
 }
 
-static inline uint8_t label2num(const uint8_t **src, int base)
-{
-       uint8_t ret = strtoul((const char *)(*src + 1), NULL, base) & 0xff; /* ord(0-64) => labels are separators */
-       *src = knot_wire_next_label(*src, NULL);
-       return ret;
-}
-
 static int satisfy_reverse(struct kr_zonecut *hints, knot_pkt_t *pkt, struct kr_query *qry)
 {
        /* Find a matching name */