Fix build issues for the userland stack on 32-bit platforms.
Reported by: Felix Weinrank MFC after: 1 week
This commit is contained in:
parent
45c88a3cbb
commit
dc13edbc7d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357197
@ -105,7 +105,7 @@ sctp_asconf_error_response(uint32_t id, uint16_t cause, uint8_t *error_tlv,
|
||||
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;
|
||||
|
||||
|
@ -6885,7 +6885,7 @@ sctp_sendall(struct sctp_inpcb *inp, struct uio *uio, struct mbuf *m,
|
||||
/* 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user