From: Jelte Jansen Date: Tue, 7 Oct 2008 15:02:37 +0000 (+0000) Subject: uint16 is by far not big enough for some zones X-Git-Tag: release-1.4.0~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=758e712b2d413c94d69755dea7db80bfcd348eb2;p=thirdparty%2Fldns.git uint16 is by far not big enough for some zones --- diff --git a/ldns/zone.h b/ldns/zone.h index ca3fe1b5..e8c29c8f 100644 --- a/ldns/zone.h +++ b/ldns/zone.h @@ -63,7 +63,7 @@ ldns_rr * ldns_zone_soa(const ldns_zone *z); * \param[in] z the zone to read from * \return the number of rr's in the zone */ -uint16_t ldns_zone_rr_count(const ldns_zone *z); +size_t ldns_zone_rr_count(const ldns_zone *z); /** * Set the zone's soa record diff --git a/zone.c b/zone.c index c5670f72..523aa028 100644 --- a/zone.c +++ b/zone.c @@ -19,7 +19,7 @@ ldns_zone_soa(const ldns_zone *z) return z->_soa; } -uint16_t +size_t ldns_zone_rr_count(const ldns_zone *z) { return ldns_rr_list_rr_count(z->_rrs); @@ -180,7 +180,7 @@ ldns_zone_glue_rr_list(const ldns_zone *z) ldns_rr_list *glue; ldns_rr *r, *ns, *a; ldns_rdf *dname_a, *dname_ns, *ns_owner; - uint16_t i,j; + size_t i,j; zone_cuts = NULL; addr = NULL;