Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumblekit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/MKServerPinger.m')
-rw-r--r--src/MKServerPinger.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MKServerPinger.m b/src/MKServerPinger.m
index 50bdd4f..5e3145a 100644
--- a/src/MKServerPinger.m
+++ b/src/MKServerPinger.m
@@ -198,9 +198,9 @@
struct sockaddr *sa = (struct sockaddr *) [addr bytes];
if (sa->sa_family == AF_INET)
- sendto(_sock4, buf, 12, 0, [addr bytes], [addr length]);
+ sendto(_sock4, buf, 12, 0, [addr bytes], (socklen_t)[addr length]);
else if (sa->sa_family == AF_INET6)
- sendto(_sock6, buf, 12, 0, [addr bytes], [addr length]);
+ sendto(_sock6, buf, 12, 0, [addr bytes], (socklen_t)[addr length]);
}
}