summaryrefslogtreecommitdiff
path: root/src/auth_distcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auth_distcc.c')
-rw-r--r--src/auth_distcc.c2
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));