summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-04-13 19:06:09 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-04-13 19:06:09 +0000
commitf44a72b5e24e3adc4f72db2b443fa9942ea7979b (patch)
tree9c514e22b6935f4f0a928d5e1b80138dfe156fdb
parent435e1b2b7cf9947ee30bd1215b945d4c24d31cd8 (diff)
kill #if 0 crud
-rw-r--r--usr.sbin/hostapd/parse.y41
1 files changed, 1 insertions, 40 deletions
diff --git a/usr.sbin/hostapd/parse.y b/usr.sbin/hostapd/parse.y
index d8f490432ee..6736661c0c9 100644
--- a/usr.sbin/hostapd/parse.y
+++ b/usr.sbin/hostapd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.3 2005/04/13 18:44:51 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.4 2005/04/13 19:06:08 henning Exp $ */
/*
* Copyright (c) 2004, 2005 Reyk Floeter <reyk@vantronix.net>
@@ -464,45 +464,6 @@ symget(const char *nam)
return (NULL);
}
-#if 0
-int
-yylex(void)
-{
- char *p;
- int v;
-
- /* Locate next token */
- if (confptr == NULL) {
- confptr = confbuf;
- } else {
- for (p = confptr; *p && p < confbuf + conflen; p++)
- ;
- *p++;
- if (!*p)
- return 0;
- confptr = p;
- }
-
- /* Numerical token? */
- if (isdigit(*confptr)) {
- for (p = confptr; *p; p++)
- if (*p == '.') /* IP-address, or bad input */
- goto is_string;
- v = (int)strtol(confptr, (char **)NULL, 10);
- yylval.val = v;
- return VALUE;
- }
-
- is_string:
- if ((v = lookup(confptr)) == STRING) {
- yylval.string = strdup(confptr);
- if (yylval.string == NULL)
- hostapd_fatal("yylex: strdup()");
- }
- return v;
-}
-#endif
-
int
hostapd_parse_file(struct hostapd_config *cfg)
{