summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-10-05 15:50:57 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-10-05 15:50:57 +0000
commit442d882dd26ea2bd3737e433981c74b28d6028dc (patch)
tree8bd1151970c7cca0d47cd8bce6c550ce0c513059 /usr.sbin/relayd
parent88dc73ac0e34bdafcb97aa7a0464fa7c341281d6 (diff)
cast to an int
Diffstat (limited to 'usr.sbin/relayd')
-rw-r--r--usr.sbin/relayd/parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y
index 6135aa6cbce..67411ba6c02 100644
--- a/usr.sbin/relayd/parse.y
+++ b/usr.sbin/relayd/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;
}