summaryrefslogtreecommitdiffstats
path: root/usr.sbin/switchd/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/switchd/parse.y')
-rw-r--r--usr.sbin/switchd/parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/switchd/parse.y b/usr.sbin/switchd/parse.y
index 1ef1ff3efce..a1e2c79ba78 100644
--- a/usr.sbin/switchd/parse.y
+++ b/usr.sbin/switchd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.14 2018/11/08 17:48:06 akoshibe Exp $ */
+/* $OpenBSD: parse.y,v 1.15 2019/02/13 22:57:08 deraadt Exp $ */
/*
* Copyright (c) 2007-2016 Reyk Floeter <reyk@openbsd.org>
@@ -511,7 +511,7 @@ top:
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());
}
@@ -550,7 +550,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());
}