tsocket: Fix some type-punned warnings
authorVolker Lendecke <vl@samba.org>
Mon, 21 Jun 2010 06:42:58 +0000 (08:42 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 21 Jun 2010 13:03:59 +0000 (15:03 +0200)
lib/tsocket/tsocket_bsd.c

index 4a8a63e20bf4b110f6bb477f0177b0d3039a4505..dfc9685bc9d81f0cc8442d60e8a00be341175f54 100644 (file)
@@ -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;
                }