summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststated/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/hoststated/parse.y')
-rw-r--r--usr.sbin/hoststated/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/hoststated/parse.y b/usr.sbin/hoststated/parse.y
index 6135aa6cbce..67411ba6c02 100644
--- a/usr.sbin/hoststated/parse.y
+++ b/usr.sbin/hoststated/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.59 2007/10/02 21:04:13 pyr Exp $ */
+/* $OpenBSD: parse.y,v 1.60 2007/10/05 15:50:56 reyk Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -192,7 +192,7 @@ port : PORT STRING {
free($2);
}
| PORT NUMBER {
- if ($2 <= 0 || $2 >= USHRT_MAX) {
+ if ($2 <= 0 || $2 >= (int)USHRT_MAX) {
yyerror("invalid port: %d", $2);
YYERROR;
}