aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2020-01-28 10:09:05 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2020-01-28 10:09:05 +0000
commitdc13edbc7df93478417321a5011326dbe2e13c47 (patch)
treebbc947bddde42cb7b766383212d28e7fb8279b32
parent45c88a3cbb2554f5287cfc58fd56b40dde9b4e9e (diff)
downloadsrc-dc13edbc7df93478417321a5011326dbe2e13c47.tar.gz
src-dc13edbc7df93478417321a5011326dbe2e13c47.zip
Fix build issues for the userland stack on 32-bit platforms.
Reported by: Felix Weinrank MFC after: 1 week
Notes
Notes: svn path=/head/; revision=357197
-rw-r--r--sys/netinet/sctp_asconf.c2
-rw-r--r--sys/netinet/sctp_output.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctp_asconf.c b/sys/netinet/sctp_asconf.c
index 9923d4cea70a..ede93027ef6f 100644
--- a/sys/netinet/sctp_asconf.c
+++ b/sys/netinet/sctp_asconf.c
@@ -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;
diff --git a/sys/netinet/sctp_output.c b/sys/netinet/sctp_output.c
index bd12494a8300..655390677e61 100644
--- a/sys/netinet/sctp_output.c
+++ b/sys/netinet/sctp_output.c
@@ -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);
}