From 2c2d6b0753b6e19205d36db5783f39edba7ebf51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Fri, 28 Sep 2012 22:30:39 +0400 Subject: [PATCH] curl: fix compiler warning with setsockopt() on windows The optval argument is of type const char * on windows. https://bugzilla.gnome.org/show_bug.cgi?id=685065 --- ext/curl/gstcurlbasesink.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/curl/gstcurlbasesink.c b/ext/curl/gstcurlbasesink.c index 8cbb104314..ebbbb99aee 100644 --- a/ext/curl/gstcurlbasesink.c +++ b/ext/curl/gstcurlbasesink.c @@ -1172,11 +1172,12 @@ gst_curl_base_sink_setup_dscp_unlocked (GstCurlBaseSink * sink) switch (af) { case AF_INET: - ret = setsockopt (sink->fd.fd, IPPROTO_IP, IP_TOS, &tos, sizeof (tos)); + ret = setsockopt (sink->fd.fd, IPPROTO_IP, IP_TOS, (void *) &tos, + sizeof (tos)); break; case AF_INET6: #ifdef IPV6_TCLASS - ret = setsockopt (sink->fd.fd, IPPROTO_IPV6, IPV6_TCLASS, &tos, + ret = setsockopt (sink->fd.fd, IPPROTO_IPV6, IPV6_TCLASS, (void *) &tos, sizeof (tos)); break; #endif