From 9eceab33f97724be148f9f05614d7551940e85f1 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 29 May 2014 23:05:03 +0200 Subject: String constants could be used for string option values. Thanks to Frederik Kriewitz for the patch. --- sysdep/unix/config.Y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdep/unix/config.Y') diff --git a/sysdep/unix/config.Y b/sysdep/unix/config.Y index 1bba9a0d..7fd0ad2d 100644 --- a/sysdep/unix/config.Y +++ b/sysdep/unix/config.Y @@ -35,12 +35,12 @@ log_config: LOG log_file log_mask ';' { ; syslog_name: - NAME TEXT { $$ = $2; } + NAME text { $$ = $2; } | { $$ = bird_name; } ; log_file: - TEXT { + text { FILE *f = tracked_fopen(new_config->pool, $1, "a"); if (!f) cf_error("Unable to open log file `%s': %m", $1); $$ = f; @@ -76,7 +76,7 @@ CF_ADDTO(conf, mrtdump_base) mrtdump_base: MRTDUMP PROTOCOLS mrtdump_mask ';' { new_config->proto_default_mrtdump = $3; } - | MRTDUMP TEXT ';' { + | MRTDUMP text ';' { FILE *f = tracked_fopen(new_config->pool, $2, "a"); if (!f) cf_error("Unable to open MRTDump file '%s': %m", $2); new_config->mrtdump_file = fileno(f); -- cgit v1.2.3