Author: tuexen Date: Tue Jan 28 10:09:05 2020 New Revision: 357197 URL: https://svnweb.freebsd.org/changeset/base/357197
Log: Fix build issues for the userland stack on 32-bit platforms. Reported by: Felix Weinrank MFC after: 1 week Modified: head/sys/netinet/sctp_asconf.c head/sys/netinet/sctp_output.c Modified: head/sys/netinet/sctp_asconf.c ============================================================================== --- head/sys/netinet/sctp_asconf.c Tue Jan 28 07:49:52 2020 (r357196) +++ head/sys/netinet/sctp_asconf.c Tue Jan 28 10:09:05 2020 (r357197) @@ -105,7 +105,7 @@ sctp_asconf_error_response(uint32_t id, uint16_t cause struct mbuf *m_reply = NULL; struct sctp_asconf_paramhdr *aph; struct sctp_error_cause *error; - size_t buf_len; + uint32_t buf_len; uint16_t i, param_length, cause_length, padding_length; uint8_t *tlv; Modified: head/sys/netinet/sctp_output.c ============================================================================== --- head/sys/netinet/sctp_output.c Tue Jan 28 07:49:52 2020 (r357196) +++ head/sys/netinet/sctp_output.c Tue Jan 28 10:09:05 2020 (r357197) @@ -6885,7 +6885,7 @@ sctp_sendall(struct sctp_inpcb *inp, struct uio *uio, /* There is another. */ return (EBUSY); } - if (uio->uio_resid > SCTP_BASE_SYSCTL(sctp_sendall_limit)) { + if (uio->uio_resid > (ssize_t)SCTP_BASE_SYSCTL(sctp_sendall_limit)) { /* You must not be larger than the limit! */ return (EMSGSIZE); } _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"