From c430b57ce44e67d3eddc0d2fffaa78b9b0f36af5 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 28 May 2011 20:38:13 +0200 Subject: s3: Fix a type-punned warning --- source3/libsmb/cliconnect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 9ee3b7972c..60637451d0 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -3194,7 +3194,8 @@ NTSTATUS cli_connect_nb(const char *host, struct sockaddr_storage *pss, cli->port = port; length = sizeof(cli->dest_ss); - ret = getpeername(fd, (struct sockaddr *)&cli->dest_ss, &length); + ret = getpeername(fd, (struct sockaddr *)(void *)&cli->dest_ss, + &length); if (ret == -1) { status = map_nt_error_from_unix(errno); cli_shutdown(cli); -- cgit