summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-10-25 18:52:14 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-10-25 18:52:14 +0000
commit725b5089eb2f84e6db2846ee2956f4dbd8af42be (patch)
treeb608a26fbe637f8cf0544b712430b57eb1ef9aa2
parent91ed29738e536b774c94c19f03c8ce94541eade3 (diff)
remove unused debug crap, that years ago accidently hit the tree with
bgpd (2004 :)), and spread ;(
-rw-r--r--usr.sbin/dvmrpd/parse.y12
1 files changed, 3 insertions, 9 deletions
diff --git a/usr.sbin/dvmrpd/parse.y b/usr.sbin/dvmrpd/parse.y
index faa778d80c6..2625cc8c531 100644
--- a/usr.sbin/dvmrpd/parse.y
+++ b/usr.sbin/dvmrpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.1 2006/06/01 14:12:20 norby Exp $ */
+/* $OpenBSD: parse.y,v 1.2 2006/10/25 18:52:13 henning Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Esben Norby <norby@openbsd.org>
@@ -46,7 +46,6 @@ static struct dvmrpd_conf *conf;
static FILE *fin = NULL;
static int lineno = 1;
static int errors = 0;
-static int pdebug = 1;
char *infile;
char *start_state;
@@ -403,15 +402,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