diff options
author | Randall Stewart <rrs@FreeBSD.org> | 2006-11-05 13:25:18 +0000 |
---|---|---|
committer | Randall Stewart <rrs@FreeBSD.org> | 2006-11-05 13:25:18 +0000 |
commit | 50cec91936924bf8fe84a616baa88edd78cbf7f7 (patch) | |
tree | 0917b677ec5366916adb9fc52ff977feb016deb1 /sys/netinet/sctp_crc32.c | |
parent | b16b2bd27488db1ec5b36c22f7b4776b70616a9d (diff) | |
download | src-50cec91936924bf8fe84a616baa88edd78cbf7f7.tar.gz src-50cec91936924bf8fe84a616baa88edd78cbf7f7.zip |
Tons of fixes to get all the 64bit issues removed.
This also moves two 16 bit int's to become 32 bit
values so we do not have to use atomic_add_16.
Most of the changes are %p, casts and other various
nasty's that were in the orignal code base. With this
commit my machine will now do a build universe.. however
I as yet have not tested on a 64bit machine .. it may not work :-(
Notes
Notes:
svn path=/head/; revision=163996
Diffstat (limited to 'sys/netinet/sctp_crc32.c')
-rw-r--r-- | sys/netinet/sctp_crc32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_crc32.c b/sys/netinet/sctp_crc32.c index f6fd98cf9576..eba91cdba7c8 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 & 3; + offset = (uintptr_t) (buffer & ~0x3); return (sctp_crc32c_sb8_64_bit(crc32, buffer, length, offset)); } |