Address some warnings which showed up on the userland version.

MFC after: 1 week
This commit is contained in:
Michael Tuexen 2013-12-27 13:07:00 +00:00
parent 6f0c167fe2
commit 04aab884d7
2 changed files with 3 additions and 3 deletions

View file

@ -2788,7 +2788,7 @@ flags_out:
if (stcb) {
/* simply copy out the sockaddr_storage... */
int len;
size_t len;
len = *optsize;
if (len > stcb->asoc.primary_destination->ro._l_addr.sa.sa_len)

View file

@ -5868,8 +5868,8 @@ get_more_data:
goto release;
}
if ((uio->uio_resid == 0) ||
((in_eeor_mode) && (copied_so_far >= max(so->so_rcv.sb_lowat, 1)))
) {
((in_eeor_mode) &&
(copied_so_far >= (uint32_t) max(so->so_rcv.sb_lowat, 1)))) {
goto release;
}
/*