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-rr.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-rr.c')
-rw-r--r-- | src/resolve/resolved-dns-rr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resolve/resolved-dns-rr.c b/src/resolve/resolved-dns-rr.c index e9907eabc0..859b3f7339 100644 --- a/src/resolve/resolved-dns-rr.c +++ b/src/resolve/resolved-dns-rr.c @@ -527,10 +527,11 @@ static int format_timestamp_dns(char *buf, size_t l, time_t sec) { static char *format_types(Bitmap *types) { _cleanup_strv_free_ char **strv = NULL; _cleanup_free_ char *str = NULL; + Iterator i; unsigned type; int r; - BITMAP_FOREACH(type, types) { + BITMAP_FOREACH(type, types, i) { if (dns_type_to_string(type)) { r = strv_extend(&strv, strdup(dns_type_to_string(type))); if (r < 0) |