summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2005-07-04 09:31:35 +0000
committerclaudio <claudio@openbsd.org>2005-07-04 09:31:35 +0000
commit05dd70f869e35a80d614a20f7e5dfa88b3e6a48a (patch)
treef405e7f7326ee339f25d9111ad5499ba85bc1f72
parent- fix typo (diff)
downloadwireguard-openbsd-05dd70f869e35a80d614a20f7e5dfa88b3e6a48a.tar.xz
wireguard-openbsd-05dd70f869e35a80d614a20f7e5dfa88b3e6a48a.zip
Switch some parser rules from "string" to "STRING". "string" is to greedy
and hides possible typos. e.g. set { rtlabel foo localperf 100 } was a valid syntax but the result was a route label with name "foo localperf 100". OK henning@
-rw-r--r--usr.sbin/bgpd/parse.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index 4d89a9b2f84..1aebab4c54b 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.166 2005/07/01 13:38:14 claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.167 2005/07/04 09:31:35 claudio Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -316,7 +316,7 @@ conf_main : AS asnumber {
else
conf->flags &= ~BGPD_FLAG_DECISION_TRANS_AS;
}
- | LOG string {
+ | LOG STRING {
if (!strcmp($2, "updates"))
conf->log |= BGPD_LOG_UPDATES;
else {
@@ -1307,7 +1307,7 @@ filter_set_opt : LOCALPREF number {
}
$$->action.prepend = $2;
}
- | PFTABLE string {
+ | PFTABLE STRING {
if (($$ = calloc(1, sizeof(struct filter_set))) == NULL)
fatal(NULL);
$$->type = ACTION_PFTABLE;
@@ -1331,7 +1331,7 @@ filter_set_opt : LOCALPREF number {
}
free($2);
}
- | RTLABEL string {
+ | RTLABEL STRING {
if (($$ = calloc(1, sizeof(struct filter_set))) == NULL)
fatal(NULL);
$$->type = ACTION_RTLABEL;