From e87daec833f321935730a7a8f8df1c2334f86518 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Tue, 13 Jun 2000 16:36:12 +0000 Subject: workaround for arch with char == unsigned char (suppress warning). --- sys/netinet6/icmp6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netinet6/icmp6.c') diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index d823730ffcd..83dee468e08 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: icmp6.c,v 1.16 2000/06/12 17:24:26 itojun Exp $ */ +/* $OpenBSD: icmp6.c,v 1.17 2000/06/13 16:36:11 itojun Exp $ */ /* $KAME: icmp6.c,v 1.113 2000/06/12 09:24:41 itojun Exp $ */ /* @@ -1406,7 +1406,7 @@ ni6_dnsmatch(a, alen, b, blen) if (a - a0 + 1 > alen || b - b0 + 1 > blen) return 0; - if (a[0] < 0 || b[0] < 0) + if ((int)a[0] < 0 || (int)b[0] < 0) return 0; /* we don't support compression yet */ if (a[0] >= 64 || b[0] >= 64) -- cgit v1.2.3