This change updates the lwip socket read/write ops to use unsigned
size_t for the length of the passed-in iovec.
The internal lwip read/write functions still use int, and simply package
it into struct msghdr, which is size_t once again.
If overflow is a concern we should fix it with a build patch.
Signed-off-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #61
static ssize_t
lwip_posix_socket_read(posix_sock *file, const struct iovec *iov,
- int iovcnt)
+ size_t iovcnt)
{
int lwip_fd;
ssize_t ret;
static ssize_t
lwip_posix_socket_write(posix_sock *file, const struct iovec *iov,
- int iovcnt)
+ size_t iovcnt)
{
int lwip_fd;
ssize_t ret;