diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-01-19 13:57:30 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-01-20 09:07:30 +0100 |
commit | e74a6b7b72233662d47fad8d43c7157e665a1f1e (patch) | |
tree | fe83e750db596e03a1bda709bb2f41c5309cafa3 /lib/url.h | |
parent | cdb495f743d9154294686b4faf7075ff6b4f1b5a (diff) | |
download | curl-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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |