sctp: fix a signed/unsigned mismatch.

MFC after:	3 days
This commit is contained in:
Michael Tuexen 2022-02-17 22:44:41 +01:00
parent 5c73b3e0a3
commit 11c4d4b966
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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