Avoid implicit conversion. (#566)

Motivation:

We were inadvertently doing an implicit integer conversion from
ssize_t to unsigned int in our sendmmsg shim. This can sometimes
generate warnings. The conversion itself is safe.

Modifications:

Make the conversion explicit.

Result:

No warnings.

(cherry picked from commit 131f378d95)
This commit is contained in:
Cory Benfield authored and Cory Benfield committed 2018-08-10 13:25:10 +01:00
1 parent 3940592a6c
commit cf08e673dc
1 file changed
+1 -1
+1 -1
View File
@@ -39,7 +39,7 @@ int CNIODarwin_sendmmsg(int sockfd, CNIODarwin_mmsghdr *msgvec, unsigned int vle
}
// Send succeeded, save off the bytes written.
msgvec[i].msg_len = sendAmount;
msgvec[i].msg_len = (unsigned int)sendAmount;
}
// If we dropped out, we sent everything.