diff options
author | des <des@FreeBSD.org> | 2013-04-09 13:14:39 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2013-04-09 13:14:39 +0000 |
commit | 582e4690756c08417aaef6ac08656325e85c7e33 (patch) | |
tree | e2fef39df96c6eb7ccdcbf6fb3c6314d797e793f /contrib/ldns/util.c | |
parent | 320677190635e38d0c6d35740b6e7584bbd75df5 (diff) | |
download | FreeBSD-src-582e4690756c08417aaef6ac08656325e85c7e33.zip FreeBSD-src-582e4690756c08417aaef6ac08656325e85c7e33.tar.gz |
Revert local changes and pull in r3828 from upstream.
Diffstat (limited to 'contrib/ldns/util.c')
-rw-r--r-- | contrib/ldns/util.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/contrib/ldns/util.c b/contrib/ldns/util.c index fc8df86..0439fbe 100644 --- a/contrib/ldns/util.c +++ b/contrib/ldns/util.c @@ -25,46 +25,6 @@ #include <openssl/rand.h> #endif -#if 0 -/* put this here tmp. for debugging */ -static void -xprintf_rdf(ldns_rdf *rd) -{ - /* assume printable string */ - fprintf(stderr, "size\t:%u\n", (unsigned int)ldns_rdf_size(rd)); - fprintf(stderr, "type\t:%u\n", (unsigned int)ldns_rdf_get_type(rd)); - fprintf(stderr, "data\t:[%.*s]\n", (int)ldns_rdf_size(rd), - (char*)ldns_rdf_data(rd)); -} - -static void -xprintf_rr(ldns_rr *rr) -{ - /* assume printable string */ - uint16_t count, i; - - count = ldns_rr_rd_count(rr); - - for(i = 0; i < count; i++) { - fprintf(stderr, "print rd %u\n", (unsigned int) i); - xprintf_rdf(rr->_rdata_fields[i]); - } -} - -static void -xprintf_hex(uint8_t *data, size_t len) -{ - size_t i; - for (i = 0; i < len; i++) { - if (i > 0 && i % 20 == 0) { - printf("\t; %u - %u\n", (unsigned int) i - 19, (unsigned int) i); - } - printf("%02x ", (unsigned int) data[i]); - } - printf("\n"); -} -#endif - ldns_lookup_table * ldns_lookup_by_name(ldns_lookup_table *table, const char *name) { |