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
This commit is contained in:
Руслан Ижбулатов 2012-09-28 22:30:39 +04:00 committed by Tim-Philipp Müller
parent 9a2735a063
commit 2c2d6b0753

View file

@ -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