replace remaining h_attr_bool calls with VRULEs

This commit is contained in:
Sven M. Hallberg 2013-01-17 18:34:11 +01:00
parent dd574bd735
commit 954a762fc0
2 changed files with 14 additions and 15 deletions

View file

@ -42,7 +42,7 @@ const HParser* init_rdata(uint16_t type) {
H_RULE (mb, domain);
H_RULE (mg, domain);
H_RULE (mr, domain);
H_RULE (null_, h_attr_bool(h_many(h_uint8()), validate_null));
H_VRULE(null, h_many(h_uint8()));
H_RULE (wks, h_sequence(h_uint32(),
h_uint8(),
h_many(h_uint8()),
@ -64,7 +64,7 @@ const HParser* init_rdata(uint16_t type) {
parsers[ 7] = mb;
parsers[ 8] = mg;
parsers[ 9] = mr;
parsers[10] = null_;
parsers[10] = null;
parsers[11] = wks;
parsers[12] = ptr;
parsers[13] = hinfo;