diff options
author | Volker Lendecke <vl@samba.org> | 2010-07-04 20:49:43 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-07-05 11:06:32 +0200 |
commit | 1832e38425b12841d67aa6194bd4ae53697077ab (patch) | |
tree | 2da4686a7c391524aed1c0a8561db2a3f1e519c5 | |
parent | 2838047657d5ba37b1ba0259577875919c47b09c (diff) | |
download | samba-1832e38425b12841d67aa6194bd4ae53697077ab.tar.gz samba-1832e38425b12841d67aa6194bd4ae53697077ab.tar.bz2 samba-1832e38425b12841d67aa6194bd4ae53697077ab.zip |
s3: Remove some type-punned warnings
-rw-r--r-- | source3/lib/ctdbd_conn.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index b4e7151b6f..9a30d1fdc2 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -135,7 +135,7 @@ static NTSTATUS ctdbd_connect(TALLOC_CTX *mem_ctx, addr.sun_family = AF_UNIX; strncpy(addr.sun_path, sockname, sizeof(addr.sun_path)); - if (sys_connect(fd, (struct sockaddr *)&addr) == -1) { + if (sys_connect(fd, (struct sockaddr *)(void *)&addr) == -1) { DEBUG(1, ("connect(%s) failed: %s\n", sockname, strerror(errno))); close(fd); @@ -1274,15 +1274,15 @@ NTSTATUS ctdbd_register_ips(struct ctdbd_connection *conn, switch (client.ss_family) { case AF_INET: - p4.dest = *(struct sockaddr_in *)&server; - p4.src = *(struct sockaddr_in *)&client; + p4.dest = *(struct sockaddr_in *)(void *)&server; + p4.src = *(struct sockaddr_in *)(void *)&client; data.dptr = (uint8_t *)&p4; data.dsize = sizeof(p4); break; #ifdef HAVE_STRUCT_CTDB_CONTROL_TCP_ADDR case AF_INET6: - p.dest.ip6 = *(struct sockaddr_in6 *)&server; - p.src.ip6 = *(struct sockaddr_in6 *)&client; + p.dest.ip6 = *(struct sockaddr_in6 *)(void *)&server; + p.src.ip6 = *(struct sockaddr_in6 *)(void *)&client; data.dptr = (uint8_t *)&p; data.dsize = sizeof(p); break; |