git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8af446b
)
tsocket: Fix some type-punned warnings
author
Volker Lendecke
<vl@samba.org>
Mon, 21 Jun 2010 06:42:58 +0000
(08:42 +0200)
committer
Volker Lendecke
<vl@samba.org>
Mon, 21 Jun 2010 13:03:59 +0000
(15:03 +0200)
lib/tsocket/tsocket_bsd.c
patch
|
blob
|
history
diff --git
a/lib/tsocket/tsocket_bsd.c
b/lib/tsocket/tsocket_bsd.c
index 4a8a63e20bf4b110f6bb477f0177b0d3039a4505..dfc9685bc9d81f0cc8442d60e8a00be341175f54 100644
(file)
--- 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;
}