Date: Sat, 12 Sep 2015 18:00:07 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287719 - head/sys/netinet Message-ID: <201509121800.t8CI07wH070554@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tuexen Date: Sat Sep 12 18:00:06 2015 New Revision: 287719 URL: https://svnweb.freebsd.org/changeset/base/287719 Log: Address a compile warning. MFC after: 1 week Modified: head/sys/netinet/sctp_input.c Modified: head/sys/netinet/sctp_input.c ============================================================================== --- head/sys/netinet/sctp_input.c Sat Sep 12 17:53:49 2015 (r287718) +++ head/sys/netinet/sctp_input.c Sat Sep 12 18:00:06 2015 (r287719) @@ -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?201509121800.t8CI07wH070554>