git: 11c4d4b9668c - main - sctp: fix a signed/unsigned mismatch.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 17 Feb 2022 22:01:45 UTC
The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=11c4d4b9668c3092838beb168e0bbb3187433748 commit 11c4d4b9668c3092838beb168e0bbb3187433748 Author: Michael Tuexen <tuexen@FreeBSD.org> AuthorDate: 2022-02-17 21:44:41 +0000 Commit: Michael Tuexen <tuexen@FreeBSD.org> CommitDate: 2022-02-17 21:45:57 +0000 sctp: fix a signed/unsigned mismatch. MFC after: 3 days --- sys/netinet/sctp_crc32.c | 2 +- sys/netinet/sctp_crc32.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/sctp_crc32.c b/sys/netinet/sctp_crc32.c index 9e17637d74d6..816a72bbea7b 100644 --- a/sys/netinet/sctp_crc32.c +++ b/sys/netinet/sctp_crc32.c @@ -90,7 +90,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/sys/netinet/sctp_crc32.h b/sys/netinet/sctp_crc32.h index 6b86074b696f..96ab7b96b6e4 100644 --- a/sys/netinet/sctp_crc32.h +++ b/sys/netinet/sctp_crc32.h @@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$"); #define _NETINET_SCTP_CRC32_H_ #if defined(_KERNEL) -uint32_t sctp_calculate_cksum(struct mbuf *, uint32_t); +uint32_t sctp_calculate_cksum(struct mbuf *, int32_t); #if defined(SCTP) || defined(SCTP_SUPPORT) void sctp_delayed_cksum(struct mbuf *, uint32_t offset); #endif