svn commit: r287719 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sat Sep 12 18:00:07 UTC 2015
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) {
More information about the svn-src-head
mailing list