summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-11-05 14:36:59 +0000
committerru <ru@FreeBSD.org>2006-11-05 14:36:59 +0000
commitcd38181372bfd4a1d8c035e26c87685d49a07783 (patch)
tree35f3f3eaa7946b2e60acf3c36bd58217e62cd67e /sys
parent20dc61d3a46238522e738dd8dde26965d5ce46dd (diff)
downloadFreeBSD-src-cd38181372bfd4a1d8c035e26c87685d49a07783.zip
FreeBSD-src-cd38181372bfd4a1d8c035e26c87685d49a07783.tar.gz
Revert previous commit, and instead make the expression in rev. 1.2
match the style of this file. OK'ed by: rrs
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/sctp_crc32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_crc32.c b/sys/netinet/sctp_crc32.c
index eba91cd..c0842a7 100644
--- a/sys/netinet/sctp_crc32.c
+++ b/sys/netinet/sctp_crc32.c
@@ -589,7 +589,7 @@ update_crc32(uint32_t crc32,
if (length == 0) {
return (crc32);
}
- offset = (uintptr_t) (buffer & ~0x3);
+ offset = ((uintptr_t) buffer) & 0x3;
return (sctp_crc32c_sb8_64_bit(crc32, buffer, length, offset));
}
OpenPOWER on IntegriCloud