diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-01-16 23:23:45 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:08:55 -0500 |
commit | 4a03172e66694b51a24f7b5566f361c1f1767e29 (patch) | |
tree | c29ddb9ce94d84c8c6bcba7e0ea86a2fb4524c89 /source4/libcli/raw | |
parent | 7b79694eadc288592729567c3caa7c70f6662760 (diff) | |
download | samba-4a03172e66694b51a24f7b5566f361c1f1767e29.tar.gz samba-4a03172e66694b51a24f7b5566f361c1f1767e29.tar.bz2 samba-4a03172e66694b51a24f7b5566f361c1f1767e29.zip |
r4791: used the new talloc type safety macros to make the "void *private"
pointers in the composite code type safe.
This is a bit of an experiement, I'd be interested in comments on
whether we should use this more widely.
(This used to be commit 0e1da827b380998355f75f4ef4f424802059c278)
Diffstat (limited to 'source4/libcli/raw')
-rw-r--r-- | source4/libcli/raw/clisocket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/raw/clisocket.c b/source4/libcli/raw/clisocket.c index ad1c6a13b8..66555695d3 100644 --- a/source4/libcli/raw/clisocket.c +++ b/source4/libcli/raw/clisocket.c @@ -66,8 +66,8 @@ static NTSTATUS smbcli_sock_connect_one(struct smbcli_socket *sock, static void smbcli_sock_connect_handler(struct event_context *ev, struct fd_event *fde, struct timeval t, uint16_t flags) { - struct smbcli_composite *c = fde->private; - struct clisocket_connect *conn = c->private; + struct smbcli_composite *c = talloc_get_type(fde->private, struct smbcli_composite); + struct clisocket_connect *conn = talloc_get_type(c->private, struct clisocket_connect); int i; c->status = socket_connect_complete(conn->sock->sock, 0); |