Date: Sat, 16 Jan 2016 16:52:50 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r294159 - stable/10/sys/netinet Message-ID: <201601161652.u0GGqomn032995@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tuexen Date: Sat Jan 16 16:52:50 2016 New Revision: 294159 URL: https://svnweb.freebsd.org/changeset/base/294159 Log: MFC r287719: Address a compile warning. Modified: stable/10/sys/netinet/sctp_input.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/netinet/sctp_input.c ============================================================================== --- stable/10/sys/netinet/sctp_input.c Sat Jan 16 16:46:00 2016 (r294158) +++ stable/10/sys/netinet/sctp_input.c Sat Jan 16 16:52:50 2016 (r294159) @@ -530,9 +530,9 @@ sctp_process_init_ack(struct mbuf *m, in * 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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601161652.u0GGqomn032995>