diff options
Diffstat (limited to 'staging')
-rw-r--r-- | staging/tools.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/staging/tools.c b/staging/tools.c index 9d2d1be..72445b6 100644 --- a/staging/tools.c +++ b/staging/tools.c @@ -233,8 +233,8 @@ int in6_addr_cmp(struct libnet_in6_addr addr1, *p2 = addr2.__u6_addr.__u6_addr32; int i, val = 0; - for (i = 0; i < 4; i++) { - val = CMP_INT(ntohl(*p1++), ntohl(*p2++)); + for (i = 0; i < 4; i++, p1++, p2++) { + val = CMP_INT(ntohl(*p1), ntohl(*p2)); if (val) { break; } |