diff options
| author | Michael Tuexen <tuexen@fh-muenster.de> | 2022-02-17 19:52:53 +0100 |
|---|---|---|
| committer | Michael Tuexen <tuexen@fh-muenster.de> | 2022-02-17 19:52:53 +0100 |
| commit | 4cd990cee0ccc899b70f9bdeddb64821ca263a85 (patch) | |
| tree | 161075d7611fb0a8e70ba2e2b55a36f5702801f0 | |
| parent | b972c07d9ff8787e830d27bd3ef0ca3663a768b8 (diff) | |
Improve singed/unsinged consistency
| -rwxr-xr-x | usrsctplib/netinet/sctp_crc32.c | 2 | ||||
| -rwxr-xr-x | usrsctplib/netinet/sctp_crc32.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usrsctplib/netinet/sctp_crc32.c b/usrsctplib/netinet/sctp_crc32.c index ba29a1a..51b4e49 100755 --- a/usrsctplib/netinet/sctp_crc32.c +++ b/usrsctplib/netinet/sctp_crc32.c @@ -770,7 +770,7 @@ sctp_calculate_cksum_cb(void *arg, void *data, u_int len) * it is compiled on a kernel with SCTP support. */ uint32_t -sctp_calculate_cksum(struct mbuf *m, uint32_t offset) +sctp_calculate_cksum(struct mbuf *m, int32_t offset) { uint32_t base; int len; diff --git a/usrsctplib/netinet/sctp_crc32.h b/usrsctplib/netinet/sctp_crc32.h index 5e76ff2..66c6b0d 100755 --- a/usrsctplib/netinet/sctp_crc32.h +++ b/usrsctplib/netinet/sctp_crc32.h @@ -34,7 +34,7 @@ #if defined(__FreeBSD__) && !defined(__Userspace__) #include <sys/cdefs.h> -__FBSDID("$FreeBSD: head/sys/netinet/sctp_crc32.h 362338 2020-06-18 19:32:34Z markj $"); +__FBSDID("$FreeBSD$"); #endif #ifndef _NETINET_SCTP_CRC32_H_ @@ -51,6 +51,6 @@ void sctp_delayed_cksum(struct mbuf *, uint32_t offset); #if defined(__Userspace__) uint32_t calculate_crc32c(uint32_t, const unsigned char *, unsigned int); uint32_t sctp_finalize_crc32c(uint32_t); -uint32_t sctp_calculate_cksum(struct mbuf *, uint32_t); +uint32_t sctp_calculate_cksum(struct mbuf *, int32_t); #endif #endif /* __crc32c_h__ */ |
