diff options
author | Jim Klimov <jim@jimklimov.com> | 2016-07-15 18:23:43 +0200 |
---|---|---|
committer | Jim Klimov <jim@jimklimov.com> | 2016-07-15 18:23:43 +0200 |
commit | 6905acca39f794eafdab74b978be9bdfbd052e37 (patch) | |
tree | a7dd0f987fdc1af7229e5fbd654e6cf61a9f9bd9 | |
parent | ca5d7532a219078a7cc82302c618e4e6abb2c40a (diff) | |
download | distcc-git-6905acca39f794eafdab74b978be9bdfbd052e37.tar.gz |
src/auth_distcc.c : cast the pointer to expected type
-rw-r--r-- | src/auth_distcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth_distcc.c b/src/auth_distcc.c index 4e3947c..42196f8 100644 --- a/src/auth_distcc.c +++ b/src/auth_distcc.c @@ -128,7 +128,7 @@ static int dcc_gssapi_establish_secure_context(int to_net_sd, addr_len = sizeof(addr); - if ((ret = getpeername(to_net_sd, &addr, &addr_len)) != 0) { + if ((ret = getpeername(to_net_sd, (struct sockaddr *)&addr, &addr_len)) != 0) { rs_log_error("Failed to look up peer address using socket \"%d\": %s.", to_net_sd, hstrerror(h_errno)); |