aboutsummaryrefslogtreecommitdiff
path: root/lib/hostsyn.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/hostsyn.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/hostsyn.c')
-rw-r--r--lib/hostsyn.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/hostsyn.c b/lib/hostsyn.c
index 799aa6991..01d028979 100644
--- a/lib/hostsyn.c
+++ b/lib/hostsyn.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -73,29 +73,29 @@
#ifdef CURLRES_SYNCH
/*
- * Curl_resolver_global_init() - the generic low-level name resolve API.
+ * Curl_resolver_global_init()
* Called from curl_global_init() to initialize global resolver environment.
* Does nothing here.
*/
-int Curl_resolver_global_init()
+int Curl_resolver_global_init(void)
{
return CURLE_OK;
}
/*
- * Curl_resolver_global_cleanup() - the generic low-level name resolve API.
+ * Curl_resolver_global_cleanup()
* Called from curl_global_cleanup() to destroy global resolver environment.
* Does nothing here.
*/
-void Curl_resolver_global_cleanup()
+void Curl_resolver_global_cleanup(void)
{
}
/*
- * Curl_resolver_init() - the generic low-level name resolve API.
- * Called from curl_easy_init() -> Curl_open() to initialize resolver URL-state specific environment
- * ('resolver' member of the UrlState structure).
- * Does nothing here.
+ * Curl_resolver_init()
+ * Called from curl_easy_init() -> Curl_open() to initialize resolver
+ * URL-state specific environment ('resolver' member of the UrlState
+ * structure). Does nothing here.
*/
int Curl_resolver_init(void **resolver)
{
@@ -104,10 +104,10 @@ int Curl_resolver_init(void **resolver)
}
/*
- * Curl_resolver_cleanup() - the generic low-level name resolve API.
- * Called from curl_easy_cleanup() -> Curl_close() to cleanup resolver URL-state specific environment
- * ('resolver' member of the UrlState structure).
- * Does nothing here.
+ * Curl_resolver_cleanup()
+ * Called from curl_easy_cleanup() -> Curl_close() to cleanup resolver
+ * URL-state specific environment ('resolver' member of the UrlState
+ * structure). Does nothing here.
*/
void Curl_resolver_cleanup(void *resolver)
{
@@ -115,10 +115,10 @@ void Curl_resolver_cleanup(void *resolver)
}
/*
- * Curl_resolver_duphandle() - the generic low-level name resolve API.
- * Called from curl_easy_duphandle() to duplicate resolver URL state-specific environment
- * ('resolver' member of the UrlState structure).
- * Does nothing here.
+ * Curl_resolver_duphandle()
+ * Called from curl_easy_duphandle() to duplicate resolver URL state-specific
+ * environment ('resolver' member of the UrlState structure). Does nothing
+ * here.
*/
int Curl_resolver_duphandle(void **to, void *from)
{