summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-06-21 08:42:58 +0200
committerVolker Lendecke <vl@samba.org>2010-06-21 15:03:59 +0200
commit4b64555d759c85d8ce471a28f9a4b9210fae59d5 (patch)
tree7219629311bc0a2a52a3495738b84aa94c57d79e
parent8af446be78211a3471af60ef0173cdda3e6f61bc (diff)
downloadsamba-4b64555d759c85d8ce471a28f9a4b9210fae59d5.tar.gz
samba-4b64555d759c85d8ce471a28f9a4b9210fae59d5.tar.xz
samba-4b64555d759c85d8ce471a28f9a4b9210fae59d5.zip
tsocket: Fix some type-punned warnings
-rw-r--r--lib/tsocket/tsocket_bsd.c4
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;
}