From 7cc20f1e8a38379a7717bbaf54744abc2ddfa4d1 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Tue, 18 Apr 2006 19:26:56 +0000 Subject: cannot see the string self in the ANNOUNCE STRING prod any more since self is a token now --- usr.sbin/bgpd/parse.y | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'usr.sbin/bgpd/parse.y') 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 @@ -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; -- cgit v1.2.3