diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-10-05 15:50:57 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-10-05 15:50:57 +0000 |
commit | 442d882dd26ea2bd3737e433981c74b28d6028dc (patch) | |
tree | 8bd1151970c7cca0d47cd8bce6c550ce0c513059 /usr.sbin/hoststated/parse.y | |
parent | 88dc73ac0e34bdafcb97aa7a0464fa7c341281d6 (diff) |
cast to an int
Diffstat (limited to 'usr.sbin/hoststated/parse.y')
-rw-r--r-- | usr.sbin/hoststated/parse.y | 4 |
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; } |