summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ifstated
diff options
context:
space:
mode:
authorbenno <benno@openbsd.org>2017-07-04 21:13:03 +0000
committerbenno <benno@openbsd.org>2017-07-04 21:13:03 +0000
commitac553da5401fd0a9feee6e6bcb800884d494cfb0 (patch)
tree2e1128643a1f5541728a7fad84d81d8f2750f581 /usr.sbin/ifstated
parentrename fetch_state() to fetch_ifstate(). The word "state" is a bit (diff)
downloadwireguard-openbsd-ac553da5401fd0a9feee6e6bcb800884d494cfb0.tar.xz
wireguard-openbsd-ac553da5401fd0a9feee6e6bcb800884d494cfb0.zip
delete tokens that have never been used.
From Rob Pierce ok yacc and gcc
Diffstat (limited to 'usr.sbin/ifstated')
-rw-r--r--usr.sbin/ifstated/parse.y6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/ifstated/parse.y b/usr.sbin/ifstated/parse.y
index a321001b2b1..01191a49eae 100644
--- a/usr.sbin/ifstated/parse.y
+++ b/usr.sbin/ifstated/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.43 2017/07/02 15:28:26 benno Exp $ */
+/* $OpenBSD: parse.y,v 1.44 2017/07/04 21:13:03 benno Exp $ */
/*
* Copyright (c) 2004 Ryan McBride <mcbride@openbsd.org>
@@ -106,7 +106,7 @@ typedef struct {
%}
%token STATE INITSTATE
-%token LINK UP DOWN UNKNOWN ADDED REMOVED
+%token LINK UP DOWN UNKNOWN
%token IF RUN SETSTATE EVERY INIT
%left AND OR
%left UNARY
@@ -390,14 +390,12 @@ lookup(char *s)
/* this has to be sorted always */
static const struct keywords keywords[] = {
{ "&&", AND},
- { "added", ADDED},
{ "down", DOWN},
{ "every", EVERY},
{ "if", IF},
{ "init", INIT},
{ "init-state", INITSTATE},
{ "link", LINK},
- { "removed", REMOVED},
{ "run", RUN},
{ "set-state", SETSTATE},
{ "state", STATE},