summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-18 07:08:28 +0200
committerVolker Lendecke <vl@samba.org>2009-05-18 07:13:04 +0200
commit795b896ab083bb0c8336f91f0b8275ee5ef74fc1 (patch)
tree8285edd11d4ee47eb14a4f9869f8710efbe53f61 /source3/rpc_client
parentaa70e44cd0576e5280e24cf35000369a47dd958f (diff)
downloadsamba-795b896ab083bb0c8336f91f0b8275ee5ef74fc1.tar.gz
samba-795b896ab083bb0c8336f91f0b8275ee5ef74fc1.tar.bz2
samba-795b896ab083bb0c8336f91f0b8275ee5ef74fc1.zip
Fix a type-punned warning
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 3d7db068d5..7d059e41c9 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -3425,7 +3425,7 @@ NTSTATUS rpc_pipe_open_ncalrpc(TALLOC_CTX *mem_ctx, const char *socket_path,
addr.sun_family = AF_UNIX;
strncpy(addr.sun_path, socket_path, sizeof(addr.sun_path));
- if (sys_connect(fd, (struct sockaddr *)&addr) == -1) {
+ if (sys_connect(fd, (struct sockaddr *)(void *)&addr) == -1) {
DEBUG(0, ("connect(%s) failed: %s\n", socket_path,
strerror(errno)));
close(fd);