mirror of
https://github.com/curl/curl.git
synced 2026-07-28 13:53:07 +03:00
lib: Curl_posttransfer => multi_posttransfer
Moved from transfer.c to multi.c as it was only used within multi.c Made a void, as it returned a fixed return code nothing checked. Closes #14240
This commit is contained in:
parent
bb639db6fb
commit
eef17551ac
3 changed files with 27 additions and 30 deletions
|
|
@ -724,22 +724,6 @@ CURLcode Curl_pretransfer(struct Curl_easy *data)
|
|||
return result;
|
||||
}
|
||||
|
||||
/*
|
||||
* Curl_posttransfer() is called immediately after a transfer ends
|
||||
*/
|
||||
CURLcode Curl_posttransfer(struct Curl_easy *data)
|
||||
{
|
||||
#if defined(HAVE_SIGNAL) && defined(SIGPIPE) && !defined(HAVE_MSG_NOSIGNAL)
|
||||
/* restore the signal handler for SIGPIPE before we get back */
|
||||
if(!data->set.no_signal)
|
||||
signal(SIGPIPE, data->state.prev_signal);
|
||||
#else
|
||||
(void)data; /* unused parameter */
|
||||
#endif
|
||||
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* Curl_follow() handles the URL redirect magic. Pass in the 'newurl' string
|
||||
* as given by the remote server and set up the new URL to request.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue