summaryrefslogtreecommitdiff
path: root/usr.sbin/radiusd/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/radiusd/parse.y')
-rw-r--r--usr.sbin/radiusd/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/radiusd/parse.y b/usr.sbin/radiusd/parse.y
index 4ed94b14dee..c771518a220 100644
--- a/usr.sbin/radiusd/parse.y
+++ b/usr.sbin/radiusd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.7 2018/11/01 00:18:44 sashan Exp $ */
+/* $OpenBSD: parse.y,v 1.8 2019/02/13 22:57:08 deraadt Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -596,7 +596,7 @@ yylex(void)
if (c == '-' || isdigit(c)) {
do {
*p++ = c;
- if ((unsigned)(p-buf) >= sizeof(buf)) {
+ if ((size_t)(p-buf) >= sizeof(buf)) {
yyerror("string too long");
return (findeol());
}
@@ -635,7 +635,7 @@ nodigits:
if (isalnum(c) || c == ':' || c == '_' || c == '*') {
do {
*p++ = c;
- if ((unsigned)(p-buf) >= sizeof(buf)) {
+ if ((size_t)(p-buf) >= sizeof(buf)) {
yyerror("string too long");
return (findeol());
}