diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-04-18 19:26:56 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-04-18 19:26:56 +0000 |
commit | 7cc20f1e8a38379a7717bbaf54744abc2ddfa4d1 (patch) | |
tree | f154139eeb9da076bd7301db3c2a1c64db6e070c /usr.sbin/bgpd/parse.y | |
parent | fc37c556bbe65247271b83e68e921ae895b6c42c (diff) |
cannot see the string self in the ANNOUNCE STRING prod any more since
self is a token now
Diffstat (limited to 'usr.sbin/bgpd/parse.y')
-rw-r--r-- | usr.sbin/bgpd/parse.y | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 593602a1129..6d6609e16c6 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.186 2006/04/18 19:00:52 claudio Exp $ */ +/* $OpenBSD: parse.y,v 1.187 2006/04/18 19:26:55 henning Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -697,9 +697,7 @@ peeropts : REMOTEAS asnumber { curpeer->conf.announce_type = ANNOUNCE_SELF; } | ANNOUNCE STRING { - if (!strcmp($2, "self")) - curpeer->conf.announce_type = ANNOUNCE_SELF; - else if (!strcmp($2, "none")) + if (!strcmp($2, "none")) curpeer->conf.announce_type = ANNOUNCE_NONE; else if (!strcmp($2, "all")) curpeer->conf.announce_type = ANNOUNCE_ALL; |