summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/ipsecctl/parse.y14
-rw-r--r--sbin/pfctl/parse.y14
-rw-r--r--usr.sbin/bgpd/parse.y14
-rw-r--r--usr.sbin/dvmrpd/parse.y14
-rw-r--r--usr.sbin/hostapd/parse.y14
-rw-r--r--usr.sbin/ifstated/parse.y14
-rw-r--r--usr.sbin/iscsictl/parse.y14
-rw-r--r--usr.sbin/ldapd/parse.y14
-rw-r--r--usr.sbin/ldomctl/parse.y12
-rw-r--r--usr.sbin/ldpd/parse.y14
-rw-r--r--usr.sbin/npppd/npppd/parse.y12
-rw-r--r--usr.sbin/ntpd/parse.y12
-rw-r--r--usr.sbin/ospf6d/parse.y14
-rw-r--r--usr.sbin/ospfd/parse.y14
-rw-r--r--usr.sbin/relayd/parse.y14
-rw-r--r--usr.sbin/ripd/parse.y14
-rw-r--r--usr.sbin/snmpd/parse.y14
-rw-r--r--usr.sbin/ypldap/parse.y14
18 files changed, 123 insertions, 123 deletions
diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y
index ab4d1161f89..85ff48fc273 100644
--- a/sbin/ipsecctl/parse.y
+++ b/sbin/ipsecctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.157 2013/11/22 04:12:47 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.158 2013/11/25 12:52:12 benno Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -996,9 +996,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -1090,8 +1090,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p, *val;
+ u_char buf[8096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -1114,7 +1114,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -1159,7 +1159,7 @@ top:
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 719727a4957..7285d9d821b 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.627 2013/11/22 04:12:48 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.628 2013/11/25 12:52:45 benno Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -5536,9 +5536,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -5630,8 +5630,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p, *val;
+ u_char buf[8096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -5654,7 +5654,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -5699,7 +5699,7 @@ top:
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index 9ad04f2ad4a..c7e90c0b500 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.269 2013/11/13 09:14:48 florian Exp $ */
+/* $OpenBSD: parse.y,v 1.270 2013/11/25 12:53:27 benno Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2234,9 +2234,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -2329,8 +2329,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p, *val;
+ u_char buf[8096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -2353,7 +2353,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -2398,7 +2398,7 @@ top:
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/dvmrpd/parse.y b/usr.sbin/dvmrpd/parse.y
index 4aa4fe08c7b..e19a32dc53a 100644
--- a/usr.sbin/dvmrpd/parse.y
+++ b/usr.sbin/dvmrpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.24 2013/04/21 04:33:41 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.25 2013/11/25 12:54:14 benno Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Esben Norby <norby@openbsd.org>
@@ -409,9 +409,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -504,8 +504,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p, *val;
+ u_char buf[8096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -528,7 +528,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -573,7 +573,7 @@ top:
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/hostapd/parse.y b/usr.sbin/hostapd/parse.y
index 85222f1bdc2..8be163219e6 100644
--- a/usr.sbin/hostapd/parse.y
+++ b/usr.sbin/hostapd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.43 2010/08/03 18:42:40 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.44 2013/11/25 12:55:01 benno Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Reyk Floeter <reyk@openbsd.org>
@@ -1325,9 +1325,9 @@ lookup(char *token)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -1420,8 +1420,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p, *val;
+ u_char buf[8096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -1444,7 +1444,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -1489,7 +1489,7 @@ top:
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/ifstated/parse.y b/usr.sbin/ifstated/parse.y
index b5cd6d64498..97ee32c89f6 100644
--- a/usr.sbin/ifstated/parse.y
+++ b/usr.sbin/ifstated/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.31 2013/03/06 21:42:40 sthen Exp $ */
+/* $OpenBSD: parse.y,v 1.32 2013/11/25 12:55:44 benno Exp $ */
/*
* Copyright (c) 2004 Ryan McBride <mcbride@openbsd.org>
@@ -407,9 +407,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -502,8 +502,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p, *val;
+ u_char buf[8096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -526,7 +526,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -571,7 +571,7 @@ top:
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/iscsictl/parse.y b/usr.sbin/iscsictl/parse.y
index 2efd03804e4..acb84b1eeac 100644
--- a/usr.sbin/iscsictl/parse.y
+++ b/usr.sbin/iscsictl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.3 2011/04/27 19:20:01 claudio Exp $ */
+/* $OpenBSD: parse.y,v 1.4 2013/11/25 12:56:09 benno Exp $ */
/*
* Copyright (c) 2010 David Gwynne <dlg@openbsd.org>
@@ -382,9 +382,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index;
int
@@ -477,8 +477,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p, *val;
+ u_char buf[8096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -501,7 +501,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -546,7 +546,7 @@ top:
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/ldapd/parse.y b/usr.sbin/ldapd/parse.y
index d4d67dd92de..fab865cdc99 100644
--- a/usr.sbin/ldapd/parse.y
+++ b/usr.sbin/ldapd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.10 2010/10/18 13:29:49 sthen Exp $ */
+/* $OpenBSD: parse.y,v 1.11 2013/11/25 12:56:41 benno Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martinh@openbsd.org>
@@ -458,9 +458,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -553,8 +553,8 @@ findeol(void)
int
yylex(void)
{
- char buf[4096];
- char *p, *val;
+ u_char buf[4096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -577,7 +577,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -622,7 +622,7 @@ top:
log_warnx("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/ldomctl/parse.y b/usr.sbin/ldomctl/parse.y
index 6b08acd10eb..3f513ef2104 100644
--- a/usr.sbin/ldomctl/parse.y
+++ b/usr.sbin/ldomctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.3 2013/03/04 11:54:13 otto Exp $ */
+/* $OpenBSD: parse.y,v 1.4 2013/11/25 12:57:18 benno Exp $ */
/*
* Copyright (c) 2012 Mark Kettenis <kettenis@openbsd.org>
@@ -268,9 +268,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -363,8 +363,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p;
+ u_char buf[8096];
+ u_char *p;
int quotec, next, c;
int token;
@@ -405,7 +405,7 @@ yylex(void)
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = xstrdup(buf);
return (STRING);
diff --git a/usr.sbin/ldpd/parse.y b/usr.sbin/ldpd/parse.y
index bface5f8bfa..b497e383980 100644
--- a/usr.sbin/ldpd/parse.y
+++ b/usr.sbin/ldpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.18 2013/10/15 20:13:47 renato Exp $ */
+/* $OpenBSD: parse.y,v 1.19 2013/11/25 12:57:42 benno Exp $ */
/*
* Copyright (c) 2004, 2005, 2008 Esben Norby <norby@openbsd.org>
@@ -426,9 +426,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -519,8 +519,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p, *val;
+ u_char buf[8096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -543,7 +543,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -588,7 +588,7 @@ top:
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/npppd/npppd/parse.y b/usr.sbin/npppd/npppd/parse.y
index b95a6d2a1a5..261dc051999 100644
--- a/usr.sbin/npppd/npppd/parse.y
+++ b/usr.sbin/npppd/npppd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.6 2013/04/16 07:29:08 yasuoka Exp $ */
+/* $OpenBSD: parse.y,v 1.7 2013/11/25 12:58:17 benno Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1055,9 +1055,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -1150,8 +1150,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p;
+ u_char buf[8096];
+ u_char *p;
int quotec, next, c;
int token;
@@ -1192,7 +1192,7 @@ yylex(void)
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/ntpd/parse.y b/usr.sbin/ntpd/parse.y
index 9871d96f41e..90d4bed2cd5 100644
--- a/usr.sbin/ntpd/parse.y
+++ b/usr.sbin/ntpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.51 2013/10/21 08:48:22 phessler Exp $ */
+/* $OpenBSD: parse.y,v 1.52 2013/11/25 12:58:42 benno Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -386,9 +386,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -481,8 +481,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p;
+ u_char buf[8096];
+ u_char *p;
int quotec, next, c;
int token;
@@ -523,7 +523,7 @@ yylex(void)
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/ospf6d/parse.y b/usr.sbin/ospf6d/parse.y
index 54dcb349013..a96f518755e 100644
--- a/usr.sbin/ospf6d/parse.y
+++ b/usr.sbin/ospf6d/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.22 2013/03/06 21:36:57 sthen Exp $ */
+/* $OpenBSD: parse.y,v 1.23 2013/11/25 12:59:13 benno Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -579,9 +579,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -674,8 +674,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p, *val;
+ u_char buf[8096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -698,7 +698,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -743,7 +743,7 @@ top:
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/ospfd/parse.y b/usr.sbin/ospfd/parse.y
index 004d1f05637..55b596e5bed 100644
--- a/usr.sbin/ospfd/parse.y
+++ b/usr.sbin/ospfd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.74 2013/03/06 21:36:57 sthen Exp $ */
+/* $OpenBSD: parse.y,v 1.75 2013/11/25 12:59:34 benno Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -764,9 +764,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -859,8 +859,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p, *val;
+ u_char buf[8096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -883,7 +883,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -928,7 +928,7 @@ top:
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y
index 6d59e9da94b..76409a3dfb0 100644
--- a/usr.sbin/relayd/parse.y
+++ b/usr.sbin/relayd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.172 2013/09/09 17:57:44 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.173 2013/11/25 13:00:07 benno Exp $ */
/*
* Copyright (c) 2007-2011 Reyk Floeter <reyk@openbsd.org>
@@ -1941,9 +1941,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -2036,8 +2036,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p, *val;
+ u_char buf[8096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -2060,7 +2060,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -2105,7 +2105,7 @@ top:
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/ripd/parse.y b/usr.sbin/ripd/parse.y
index 9334e8d6943..df973c98751 100644
--- a/usr.sbin/ripd/parse.y
+++ b/usr.sbin/ripd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.29 2013/03/06 21:42:40 sthen Exp $ */
+/* $OpenBSD: parse.y,v 1.30 2013/11/25 13:00:27 benno Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -433,9 +433,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -528,8 +528,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p, *val;
+ u_char buf[8096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -552,7 +552,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -597,7 +597,7 @@ top:
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/snmpd/parse.y b/usr.sbin/snmpd/parse.y
index 508afdbda32..24a7916d322 100644
--- a/usr.sbin/snmpd/parse.y
+++ b/usr.sbin/snmpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.27 2013/10/17 08:42:44 reyk Exp $ */
+/* $OpenBSD: parse.y,v 1.28 2013/11/25 13:00:56 benno Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -555,9 +555,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -657,8 +657,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p, *val;
+ u_char buf[8096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -681,7 +681,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -726,7 +726,7 @@ top:
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)
diff --git a/usr.sbin/ypldap/parse.y b/usr.sbin/ypldap/parse.y
index 67c50c08cfe..f717704be93 100644
--- a/usr.sbin/ypldap/parse.y
+++ b/usr.sbin/ypldap/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.12 2013/03/06 21:42:40 sthen Exp $ */
+/* $OpenBSD: parse.y,v 1.13 2013/11/25 13:01:18 benno Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -403,9 +403,9 @@ lookup(char *s)
#define MAXPUSHBACK 128
-char *parsebuf;
+u_char *parsebuf;
int parseindex;
-char pushback_buffer[MAXPUSHBACK];
+u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0;
int
@@ -498,8 +498,8 @@ findeol(void)
int
yylex(void)
{
- char buf[8096];
- char *p, *val;
+ u_char buf[8096];
+ u_char *p, *val;
int quotec, next, c;
int token;
@@ -522,7 +522,7 @@ top:
return (findeol());
}
if (isalnum(c) || c == '_') {
- *p++ = (char)c;
+ *p++ = c;
continue;
}
*p = '\0';
@@ -567,7 +567,7 @@ top:
yyerror("string too long");
return (findeol());
}
- *p++ = (char)c;
+ *p++ = c;
}
yylval.v.string = strdup(buf);
if (yylval.v.string == NULL)