fix clang build
This commit is contained in:
parent
e2926f69a5
commit
23e0751b2e
|
@ -209,15 +209,17 @@ bool KICAD_CURL_EASY::SetURL( const std::string& aURL )
|
||||||
// So we also check and set any proxy config here
|
// So we also check and set any proxy config here
|
||||||
if( KIPLATFORM::ENV::GetSystemProxyConfig( aURL, cfg ) )
|
if( KIPLATFORM::ENV::GetSystemProxyConfig( aURL, cfg ) )
|
||||||
{
|
{
|
||||||
curl_easy_setopt( m_CURL, CURLOPT_PROXY, cfg.host.c_str() );
|
curl_easy_setopt( m_CURL, CURLOPT_PROXY, static_cast<const char*>( cfg.host.c_str() ) );
|
||||||
if( cfg.username != "" )
|
if( cfg.username != "" )
|
||||||
{
|
{
|
||||||
curl_easy_setopt( m_CURL, CURLOPT_PROXYUSERNAME, cfg.username.c_str() );
|
curl_easy_setopt( m_CURL, CURLOPT_PROXYUSERNAME,
|
||||||
|
static_cast<const char*>( cfg.username.c_str() ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( cfg.password != "" )
|
if( cfg.password != "" )
|
||||||
{
|
{
|
||||||
curl_easy_setopt( m_CURL, CURLOPT_PROXYPASSWORD, cfg.password.c_str() );
|
curl_easy_setopt( m_CURL, CURLOPT_PROXYPASSWORD,
|
||||||
|
static_cast<const char*>( cfg.password.c_str() ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue