MFC r259943:

Address some warnings which showed up on the userland version.
This commit is contained in:
tuexen 2014-01-07 23:50:02 +00:00
parent 16f467cacd
commit 624cda0839
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;
}
/*