From 1011450ebc82caf94a7cfea61caa05aed84c822d Mon Sep 17 00:00:00 2001 From: tuexen Date: Sat, 16 Jan 2016 16:52:50 +0000 Subject: [PATCH] MFC r287719: Address a compile warning. --- sys/netinet/sctp_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c index 143da438c134..2120339b797d 100644 --- a/sys/netinet/sctp_input.c +++ b/sys/netinet/sctp_input.c @@ -530,9 +530,9 @@ sctp_process_init_ack(struct mbuf *m, int iphlen, int offset, * abandon the peer, its broke. */ if (retval == -3) { - size_t len; + uint16_t len; - len = sizeof(struct sctp_error_missing_param) + sizeof(uint16_t); + len = (uint16_t) (sizeof(struct sctp_error_missing_param) + sizeof(uint16_t)); /* We abort with an error of missing mandatory param */ op_err = sctp_get_mbuf_for_msg(len, 0, M_NOWAIT, 1, MT_DATA); if (op_err != NULL) {