diff options
author | Marc Boucher <marc@mbsi.ca> | 2000-04-22 22:33:19 +0000 |
---|---|---|
committer | Marc Boucher <marc@mbsi.ca> | 2000-04-22 22:33:19 +0000 |
commit | ca92443e5a2b6430e334900058b341b440d385d9 (patch) | |
tree | 4886a13ed53e3ebd66f88fe40c55d21805404c72 | |
parent | ac761dcadac9d6ac9ad5a957986ddedee651c3ac (diff) |
Fix minor compilation problems in match_different() and is_same().
-rw-r--r-- | libiptc/libiptc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libiptc/libiptc.c b/libiptc/libiptc.c index a90d46ea..e0da6629 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; |