mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
compiler warning: fix
Fix compiler warning: enumerated type mixed with another type
This commit is contained in:
parent
004d84fcc1
commit
fce7276f54
@ -140,7 +140,7 @@ void Curl_resolver_global_cleanup(void)
|
||||
* URL-state specific environment ('resolver' member of the UrlState
|
||||
* structure). Fills the passed pointer by the initialized ares_channel.
|
||||
*/
|
||||
int Curl_resolver_init(void **resolver)
|
||||
CURLcode Curl_resolver_init(void **resolver)
|
||||
{
|
||||
int status = ares_init((ares_channel*)resolver);
|
||||
if(status != ARES_SUCCESS) {
|
||||
|
@ -119,7 +119,7 @@ void Curl_resolver_global_cleanup(void)
|
||||
* URL-state specific environment ('resolver' member of the UrlState
|
||||
* structure). Does nothing here.
|
||||
*/
|
||||
int Curl_resolver_init(void **resolver)
|
||||
CURLcode Curl_resolver_init(void **resolver)
|
||||
{
|
||||
(void)resolver;
|
||||
return CURLE_OK;
|
||||
|
@ -60,7 +60,7 @@ void Curl_resolver_global_cleanup(void);
|
||||
* Returning anything else than CURLE_OK fails curl_easy_init() with the
|
||||
* correspondent code.
|
||||
*/
|
||||
int Curl_resolver_init(void **resolver);
|
||||
CURLcode Curl_resolver_init(void **resolver);
|
||||
|
||||
/*
|
||||
* Curl_resolver_cleanup()
|
||||
|
Loading…
Reference in New Issue
Block a user