mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Following revision 1.124, 'count' was no longer needed by bind_rdataset().
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: rbtdb.c,v 1.130 2000/10/25 04:26:43 marka Exp $ */
|
/* $Id: rbtdb.c,v 1.131 2000/11/15 23:51:13 tale Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Principal Author: Bob Halley
|
* Principal Author: Bob Halley
|
||||||
@@ -1132,7 +1132,6 @@ bind_rdataset(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node,
|
|||||||
dns_rdataset_t *rdataset)
|
dns_rdataset_t *rdataset)
|
||||||
{
|
{
|
||||||
unsigned char *raw;
|
unsigned char *raw;
|
||||||
unsigned int count;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Caller must be holding the node lock.
|
* Caller must be holding the node lock.
|
||||||
@@ -1151,10 +1150,8 @@ bind_rdataset(dns_rbtdb_t *rbtdb, dns_rbtnode_t *node,
|
|||||||
rdataset->trust = header->trust;
|
rdataset->trust = header->trust;
|
||||||
rdataset->private1 = rbtdb;
|
rdataset->private1 = rbtdb;
|
||||||
rdataset->private2 = node;
|
rdataset->private2 = node;
|
||||||
raw = (unsigned char *)header + sizeof *header;
|
raw = (unsigned char *)header + sizeof(*header);
|
||||||
rdataset->private3 = raw;
|
rdataset->private3 = raw;
|
||||||
count = raw[0] * 256 + raw[1];
|
|
||||||
raw += 2;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reset iterator state.
|
* Reset iterator state.
|
||||||
|
Reference in New Issue
Block a user