diff options
author | Volker Lendecke <vl@samba.org> | 2011-05-28 20:38:13 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-05-28 20:50:09 +0200 |
commit | c430b57ce44e67d3eddc0d2fffaa78b9b0f36af5 (patch) | |
tree | 11553ba0e8a7e7f9a53719af6de7357d259a5a56 | |
parent | 649873bcf374997088da73f85424cbb641e56735 (diff) | |
download | samba-c430b57ce44e67d3eddc0d2fffaa78b9b0f36af5.tar.gz samba-c430b57ce44e67d3eddc0d2fffaa78b9b0f36af5.tar.bz2 samba-c430b57ce44e67d3eddc0d2fffaa78b9b0f36af5.zip |
s3: Fix a type-punned warning
-rw-r--r-- | source3/libsmb/cliconnect.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |