summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/udp.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2004-04-07 22:45:51 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2004-04-07 22:45:51 +0000
commit49d2f3fa3f28f59974356f9256569c156a6e2659 (patch)
tree2f9f6a51fd70bf3de44250e6ac22400b4541e1b8 /sbin/isakmpd/udp.c
parentde3137aa6e339718ed70674a6b71f23a6e16ac4f (diff)
-Wsign-compare nits. hshoexer@ ok.
Diffstat (limited to 'sbin/isakmpd/udp.c')
-rw-r--r--sbin/isakmpd/udp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/isakmpd/udp.c b/sbin/isakmpd/udp.c
index 097a8412737..afc63cba16b 100644
--- a/sbin/isakmpd/udp.c
+++ b/sbin/isakmpd/udp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp.c,v 1.67 2004/03/29 16:32:19 deraadt Exp $ */
+/* $OpenBSD: udp.c,v 1.68 2004/04/07 22:45:49 ho Exp $ */
/* $EOM: udp.c,v 1.57 2001/01/26 10:09:57 niklas Exp $ */
/*
@@ -387,7 +387,7 @@ udp_bind_if (char *ifname, struct sockaddr *if_addr, void *arg)
* XXX Use getservbyname too.
*/
lport = strtol (port, &ep, 10);
- if (*ep != '\0' || lport < 0 || lport > USHRT_MAX)
+ if (*ep != '\0' || lport < (long)0 || lport > (long)USHRT_MAX)
{
log_print ("udp_bind_if: "
"port string \"%s\" not convertible to in_port_t", port);
@@ -671,7 +671,7 @@ udp_init (void)
* XXX Use getservbyname too.
*/
lport = strtol (port, &ep, 10);
- if (*ep != '\0' || lport < 0 || lport > USHRT_MAX)
+ if (*ep != '\0' || lport < (long)0 || lport > (long)USHRT_MAX)
{
log_print ("udp_init: port string \"%s\" not convertible to in_port_t",
port);