summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-dns-packet.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@googlemail.com>2015-07-16 15:12:26 +0200
committerDavid Herrmann <dh.herrmann@googlemail.com>2015-07-16 15:12:26 +0200
commit2ec7c4279e4cbbe668c5dfb0ab447b74deaa294b (patch)
tree27006a5c9063902b387f609920406abac3299976 /src/resolve/resolved-dns-packet.c
parent18458807574ec84f2bba4597ea5f8c925037d5f4 (diff)
parentcb57dd41595adddb08095298bb1ed258c8ea4877 (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.c3
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);