From 4b64555d759c85d8ce471a28f9a4b9210fae59d5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 21 Jun 2010 08:42:58 +0200 Subject: tsocket: Fix some type-punned warnings --- lib/tsocket/tsocket_bsd.c | 4 ++-- 1 file 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; } -- cgit