diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-06-13 16:36:12 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-06-13 16:36:12 +0000 |
commit | e87daec833f321935730a7a8f8df1c2334f86518 (patch) | |
tree | d7c5a9d7216d4fb69969f6c0cbf5e836ac851e02 /sys/netinet6 | |
parent | 495ea00cdf48f7a4990f915d52f282267da2156e (diff) |
workaround for arch with char == unsigned char (suppress warning).
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/icmp6.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |