From 2035a7c4accc6228573d7524c0bead13d1d67ca8 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Wed, 25 Oct 2006 20:01:03 +0000 Subject: geez, the anno 2004 bgpd debug shitz made it to ripd too Pierre-Yves Ritschard --- usr.sbin/ripd/parse.y | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/ripd/parse.y b/usr.sbin/ripd/parse.y index 602c679500e..1c311b00884 100644 --- a/usr.sbin/ripd/parse.y +++ b/usr.sbin/ripd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.2 2006/10/24 16:37:48 david Exp $ */ +/* $OpenBSD: parse.y,v 1.3 2006/10/25 20:01:02 henning Exp $ */ /* * Copyright (c) 2006 Michele Marchetto @@ -45,7 +45,6 @@ static struct ripd_conf *conf; static FILE *fin = NULL; static int lineno = 1; static int errors = 0; -static int pdebug = 1; char *infile; char *start_state; @@ -382,15 +381,10 @@ lookup(char *s) p = bsearch(s, keywords, sizeof(keywords)/sizeof(keywords[0]), sizeof(keywords[0]), kw_cmp); - if (p) { - if (pdebug > 1) - fprintf(stderr, "%s: %d\n", s, p->k_val); + if (p) return (p->k_val); - } else { - if (pdebug > 1) - fprintf(stderr, "string: %s\n", s); + else return (STRING); - } } #define MAXPUSHBACK 128 -- cgit v1.2.3