diff options
author | Volker Lendecke <vl@samba.org> | 2010-06-21 08:42:58 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-06-21 15:03:59 +0200 |
commit | 4b64555d759c85d8ce471a28f9a4b9210fae59d5 (patch) | |
tree | 7219629311bc0a2a52a3495738b84aa94c57d79e | |
parent | 8af446be78211a3471af60ef0173cdda3e6f61bc (diff) | |
download | samba-4b64555d759c85d8ce471a28f9a4b9210fae59d5.tar.gz samba-4b64555d759c85d8ce471a28f9a4b9210fae59d5.tar.bz2 samba-4b64555d759c85d8ce471a28f9a4b9210fae59d5.zip |
tsocket: Fix some type-punned warnings
-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; } |