From 03650e38c9046cd58c19330abb5656700d7a65c7 Mon Sep 17 00:00:00 2001 From: marc Date: Sat, 22 Apr 2000 22:33:19 +0000 Subject: Fix minor compilation problems in match_different() and is_same(). --- libiptc/libiptc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libiptc/libiptc.c') diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index a90d46e..e0da662 100644 --- a/libiptc/libiptc.c +++ b/libiptc/libiptc.c @@ -1009,7 +1009,7 @@ match_different(const struct ipt_entry_match *a, unsigned int i; /* Offset of b is the same as a. */ - b = (void *)b_elems + ((char *)a-a_elems); + b = (void *)b_elems + ((unsigned char *)a-a_elems); if (a->match_size != b->match_size) return 1; @@ -1087,7 +1087,7 @@ is_same(const struct ipt_entry *a, const struct ipt_entry *b, if (strcmp(ta->u.name, tb->u.name) != 0) return 0; - mptr += sizeof(*ta) + mptr += sizeof(*ta); if (target_different(ta->data, tb->data, ta->target_size - sizeof(*ta), mptr)) return 0; -- cgit v1.2.3