From: Volker Lendecke Date: Mon, 18 May 2009 05:08:28 +0000 (+0200) Subject: Fix a type-punned warning X-Git-Tag: tdb-1.1.5~503 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=795b896ab083bb0c8336f91f0b8275ee5ef74fc1;p=thirdparty%2Fsamba.git Fix a type-punned warning --- diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 3d7db068d5c..7d059e41c96 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);