diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-10-25 20:01:03 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-10-25 20:01:03 +0000 |
commit | 2035a7c4accc6228573d7524c0bead13d1d67ca8 (patch) | |
tree | ce89a292048cde723c344cb65ea3dbd9b4b72531 /usr.sbin | |
parent | 38f1104e2ccf17a9a81242d332214f23bc4aebc0 (diff) |
geez, the anno 2004 bgpd debug shitz made it to ripd too
Pierre-Yves Ritschard <pyr@spootnik.org>
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ripd/parse.y | 12 |
1 files changed, 3 insertions, 9 deletions
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 <mydecay@openbeer.it> @@ -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 |