2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

2889. [bug] Element of the grammar where not properly reported.

[RT #21046]
This commit is contained in:
Mark Andrews
2010-05-13 03:16:55 +00:00
parent 49560ac770
commit e12030c433
2 changed files with 15 additions and 12 deletions

View File

@@ -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, "( <quoted_string> | none )", 26);
cfg_print_cstr(pctx, "( <quoted_string> | 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, "( <quoted_string> | none | hostname )", 26);
cfg_print_cstr(pctx, "( <quoted_string> | 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, "[ <integer> ]", 13);
cfg_print_cstr(pctx, "[ <integer> ]");
}
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]);
}
}