diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-10-25 18:57:35 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-10-25 18:57:35 +0000 |
commit | bdb4dc481347d2dc58bd43d49d860a1a6c2df938 (patch) | |
tree | 615258c89b64678e478e47aa87a73ae17757d3a6 | |
parent | 50a9265f92a9d690704dec5fef9b8edf80573747 (diff) |
same old debug cruft from bgpd as killed in ospfd and dvrmpd - is it yet
somewhere else?
-rw-r--r-- | usr.sbin/ifstated/parse.y | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/usr.sbin/ifstated/parse.y b/usr.sbin/ifstated/parse.y index 4fb6e593044..8caed9314b5 100644 --- a/usr.sbin/ifstated/parse.y +++ b/usr.sbin/ifstated/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.14 2006/05/26 01:06:12 deraadt Exp $ */ +/* $OpenBSD: parse.y,v 1.15 2006/10/25 18:57:34 henning Exp $ */ /* * Copyright (c) 2004 Ryan McBride <mcbride@openbsd.org> @@ -44,7 +44,6 @@ static struct ifsd_config *conf; static FILE *fin = NULL; static int lineno = 1; static int errors = 0; -static int pdebug = 1; char *infile; char *start_state; @@ -413,15 +412,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 |