diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2015-07-16 15:12:26 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2015-07-16 15:12:26 +0200 |
commit | 2ec7c4279e4cbbe668c5dfb0ab447b74deaa294b (patch) | |
tree | 27006a5c9063902b387f609920406abac3299976 /src/resolve/resolved-dns-packet.c | |
parent | 18458807574ec84f2bba4597ea5f8c925037d5f4 (diff) | |
parent | cb57dd41595adddb08095298bb1ed258c8ea4877 (diff) |
Merge pull request #602 from teg/bitmap-iterator
bitmap: use external iterator
Diffstat (limited to 'src/resolve/resolved-dns-packet.c')
-rw-r--r-- | src/resolve/resolved-dns-packet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-packet.c b/src/resolve/resolved-dns-packet.c index e44d3926d9..b1cde4ab35 100644 --- a/src/resolve/resolved-dns-packet.c +++ b/src/resolve/resolved-dns-packet.c @@ -536,6 +536,7 @@ fail: } static int dns_packet_append_types(DnsPacket *p, Bitmap *types, size_t *start) { + Iterator i; uint8_t window = 0; uint8_t len = 0; uint8_t bitmaps[32] = {}; @@ -548,7 +549,7 @@ static int dns_packet_append_types(DnsPacket *p, Bitmap *types, size_t *start) { saved_size = p->size; - BITMAP_FOREACH(n, types) { + BITMAP_FOREACH(n, types, i) { uint8_t entry; assert(n <= 0xffff); |