aboutsummaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-01-30 01:00:52 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-04-25 19:47:16 +0200
commit24d84da0731f680a9b19653a450d4843f190d6b8 (patch)
treeb6a554ace49210a949d623bf7c97c8564bb9e41d /lib/easy.c
parentca015f1a45c68aa1d641678cfc13ce0df0c58fe0 (diff)
asynch resolvers: cleanup
Fixed indents, coding conventions and white space edits. Modified the c-ares completion callback function to again NOT read the conn data when the ares handle is being taken down as then it may have been freed already.
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 9ce80d086..cfe7224a4 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -269,7 +269,7 @@ CURLcode curl_global_init(long flags)
idna_init();
#endif
- if( Curl_resolver_global_init() != CURLE_OK ) {
+ if(Curl_resolver_global_init() != CURLE_OK) {
DEBUGF(fprintf(stderr, "Error: resolver_global_init failed\n"));
return CURLE_FAILED_INIT;
}
@@ -673,8 +673,9 @@ CURL *curl_easy_duphandle(CURL *incurl)
}
/* Clone the resolver handle, if present, for the new handle */
- if( Curl_resolver_duphandle(&outcurl->state.resolver, data->state.resolver) != CURLE_OK )
- goto fail;
+ if( Curl_resolver_duphandle(&outcurl->state.resolver,
+ data->state.resolver) != CURLE_OK )
+ goto fail;
Curl_convert_setup(outcurl);