diff options
-rw-r--r-- | lib/tsocket/tsocket_bsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tsocket/tsocket_bsd.c b/lib/tsocket/tsocket_bsd.c index 4a8a63e20b..dfc9685bc9 100644 --- a/lib/tsocket/tsocket_bsd.c +++ b/lib/tsocket/tsocket_bsd.c @@ -1663,7 +1663,7 @@ static void tstream_bsd_readv_handler(void *private_data) uint8_t *base; base = (uint8_t *)state->vector[0].iov_base; base += ret; - state->vector[0].iov_base = base; + state->vector[0].iov_base = (void *)base; state->vector[0].iov_len -= ret; break; } @@ -1823,7 +1823,7 @@ static void tstream_bsd_writev_handler(void *private_data) uint8_t *base; base = (uint8_t *)state->vector[0].iov_base; base += ret; - state->vector[0].iov_base = base; + state->vector[0].iov_base = (void *)base; state->vector[0].iov_len -= ret; break; } |