summaryrefslogtreecommitdiff
path: root/lib/url.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-01-19 13:57:30 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-01-20 09:07:30 +0100
commite74a6b7b72233662d47fad8d43c7157e665a1f1e (patch)
treefe83e750db596e03a1bda709bb2f41c5309cafa3 /lib/url.h
parentcdb495f743d9154294686b4faf7075ff6b4f1b5a (diff)
downloadcurl-e74a6b7b72233662d47fad8d43c7157e665a1f1e.tar.gz
url: make Curl_disconnect return void
1. The function would only ever return CURLE_OK anyway 2. Only one caller actually used the return code 3. Most callers did (void)Curl_disconnect() Closes #8303
Diffstat (limited to 'lib/url.h')
-rw-r--r--lib/url.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/url.h b/lib/url.h
index 929fc60f2..59a1c2491 100644
--- a/lib/url.h
+++ b/lib/url.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2022, 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
@@ -35,8 +35,8 @@ void Curl_freeset(struct Curl_easy *data);
CURLcode Curl_uc_to_curlcode(CURLUcode uc);
CURLcode Curl_close(struct Curl_easy **datap); /* opposite of curl_open() */
CURLcode Curl_connect(struct Curl_easy *, bool *async, bool *protocol_connect);
-CURLcode Curl_disconnect(struct Curl_easy *data,
- struct connectdata *, bool dead_connection);
+void Curl_disconnect(struct Curl_easy *data,
+ struct connectdata *, bool dead_connection);
CURLcode Curl_setup_conn(struct Curl_easy *data,
bool *protocol_done);
void Curl_free_request_state(struct Curl_easy *data);