Commit 003a4017 authored by David Lawrence's avatar David Lawrence
Browse files

make DNS_RDATACOMMON_INIT work again. structure elemnts had the same name as

the downcased macro argument names
parent 88eee65d
......@@ -31,9 +31,9 @@ typedef struct dns_rdatacommon {
ISC_LINK(struct dns_rdatacommon) link;
} dns_rdatacommon_t;
#define DNS_RDATACOMMON_INIT(data, rdtype, rdclass) \
#define DNS_RDATACOMMON_INIT(_data, _rdtype, _rdclass) \
do { \
(data)->common.rdtype = (rdtype); \
(data)->common.rdclass = (rdclass); \
ISC_LINK_INIT(&(data)->common, link); \
(_data)->common.rdtype = (_rdtype); \
(_data)->common.rdclass = (_rdclass); \
ISC_LINK_INIT(&(_data)->common, link); \
} while (0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment