diff --git a/CHANGES b/CHANGES index 753362cf6a..6eaf994705 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +2889. [bug] Element of the grammar where not properly reported. + [RT #21046] + 2888. [bug] Only the first EDNS option was displayed. [RT #21273] 2887. [bug] Report the keytag times in UTC in the .key file, diff --git a/lib/isccfg/namedconf.c b/lib/isccfg/namedconf.c index 47b906f77b..9d1fe10842 100644 --- a/lib/isccfg/namedconf.c +++ b/lib/isccfg/namedconf.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: namedconf.c,v 1.113 2009/12/04 21:09:34 marka Exp $ */ +/* $Id: namedconf.c,v 1.114 2010/05/13 03:16:55 marka Exp $ */ /*! \file */ @@ -383,9 +383,9 @@ parse_updatepolicy(cfg_parser_t *pctx, const cfg_type_t *type, static void doc_updatepolicy(cfg_printer_t *pctx, const cfg_type_t *type) { - cfg_print_chars(pctx, "( local | { ", 12); + cfg_print_cstr(pctx, "( local | { "); cfg_doc_obj(pctx, type->of); - cfg_print_chars(pctx, "; ... }", 7); + cfg_print_cstr(pctx, "; ... }"); } /*% @@ -612,7 +612,7 @@ static cfg_type_t cfg_type_transferformat = { static void print_none(cfg_printer_t *pctx, const cfg_obj_t *obj) { UNUSED(obj); - cfg_print_chars(pctx, "none", 4); + cfg_print_cstr(pctx, "none"); } static cfg_type_t cfg_type_none = { @@ -641,7 +641,7 @@ parse_qstringornone(cfg_parser_t *pctx, const cfg_type_t *type, static void doc_qstringornone(cfg_printer_t *pctx, const cfg_type_t *type) { UNUSED(type); - cfg_print_chars(pctx, "( | none )", 26); + cfg_print_cstr(pctx, "( | none )"); } static cfg_type_t cfg_type_qstringornone = { @@ -656,7 +656,7 @@ static cfg_type_t cfg_type_qstringornone = { static void print_hostname(cfg_printer_t *pctx, const cfg_obj_t *obj) { UNUSED(obj); - cfg_print_chars(pctx, "hostname", 4); + cfg_print_cstr(pctx, "hostname"); } static cfg_type_t cfg_type_hostname = { @@ -689,7 +689,7 @@ parse_serverid(cfg_parser_t *pctx, const cfg_type_t *type, static void doc_serverid(cfg_printer_t *pctx, const cfg_type_t *type) { UNUSED(type); - cfg_print_chars(pctx, "( | none | hostname )", 26); + cfg_print_cstr(pctx, "( | none | hostname )"); } static cfg_type_t cfg_type_serverid = { @@ -1087,7 +1087,7 @@ parse_optional_uint32(cfg_parser_t *pctx, const cfg_type_t *type, static void doc_optional_uint32(cfg_printer_t *pctx, const cfg_type_t *type) { UNUSED(type); - cfg_print_chars(pctx, "[ ]", 13); + cfg_print_cstr(pctx, "[ ]"); } static cfg_type_t cfg_type_optional_uint32 = { @@ -1853,9 +1853,9 @@ static void print_querysource(cfg_printer_t *pctx, const cfg_obj_t *obj) { isc_netaddr_t na; isc_netaddr_fromsockaddr(&na, &obj->value.sockaddr); - cfg_print_chars(pctx, "address ", 8); + cfg_print_cstr(pctx, "address "); cfg_print_rawaddr(pctx, &na); - cfg_print_chars(pctx, " port ", 6); + cfg_print_cstr(pctx, " port "); cfg_print_rawuint(pctx, isc_sockaddr_getport(&obj->value.sockaddr)); } @@ -2153,11 +2153,11 @@ static void print_logfile(cfg_printer_t *pctx, const cfg_obj_t *obj) { cfg_print_obj(pctx, obj->value.tuple[0]); /* file */ if (obj->value.tuple[1]->type->print != cfg_print_void) { - cfg_print_chars(pctx, " versions ", 10); + cfg_print_cstr(pctx, " versions "); cfg_print_obj(pctx, obj->value.tuple[1]); } if (obj->value.tuple[2]->type->print != cfg_print_void) { - cfg_print_chars(pctx, " size ", 6); + cfg_print_cstr(pctx, " size "); cfg_print_obj(pctx, obj->value.tuple[2]); } }