From: Miek Gieben Date: Mon, 21 Mar 2005 09:41:29 +0000 (+0000) Subject: don't build the test-progs in all-target X-Git-Tag: release-0.50~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09b4c82f42d918db1f2b08d378065ce873ff8da0;p=thirdparty%2Fldns.git don't build the test-progs in all-target 2 casts added in dnssec.c --- diff --git a/Makefile.in b/Makefile.in index e245797b..0b4cf469 100644 --- a/Makefile.in +++ b/Makefile.in @@ -71,7 +71,7 @@ LINK_LIB = $(LIBTOOL) $(CC) $(CFLAGS) $(LDFLAGS) .PHONY: clean realclean docclean doc lint test all ar -all: $(TESTS) $(PROG_TARGETS) libldns.a +all: $(PROG_TARGETS) libldns.a ar: libldns.a diff --git a/dnssec.c b/dnssec.c index 93a2be21..096b0598 100644 --- a/dnssec.c +++ b/dnssec.c @@ -704,7 +704,7 @@ ldns_key_rr2ds(const ldns_rr *key) } /* keytag */ - keytag = htons(ldns_keytag(key)); + keytag = htons(ldns_keytag((ldns_rr*)key)); tmp = ldns_rdf_new_frm_data(LDNS_RDF_TYPE_INT16, sizeof(uint16_t), &keytag); ldns_rr_push_rdf(ds, tmp); @@ -725,7 +725,7 @@ ldns_key_rr2ds(const ldns_rr *key) } /* all the rdata's */ - if (ldns_rr_rdata2buffer_wire(data_buf, key) != + if (ldns_rr_rdata2buffer_wire(data_buf, (ldns_rr*)key) != LDNS_STATUS_OK) { return NULL; }