summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2014-05-29 23:05:03 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2014-05-29 23:05:03 +0200
commit9eceab33f97724be148f9f05614d7551940e85f1 (patch)
tree0d7867c13fc96a80c6c21051a2c4f376a6a05b43 /sysdep
parent05476c4d04a24bdb26fa64e05ab31bc36118f34e (diff)
String constants could be used for string option values.
Thanks to Frederik Kriewitz for the patch.
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/config.Y6
1 files changed, 3 insertions, 3 deletions
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);