mirror of
https://github.com/moparisthebest/curl
synced 2024-11-15 14:05:03 -05:00
multi: remove Curl_ prefix from static functions
This commit is contained in:
parent
a7591fbb73
commit
78af707caf
12
lib/multi.c
12
lib/multi.c
@ -105,7 +105,7 @@ static const char * const statename[]={
|
|||||||
/* function pointer called once when switching TO a state */
|
/* function pointer called once when switching TO a state */
|
||||||
typedef void (*init_multistate_func)(struct Curl_easy *data);
|
typedef void (*init_multistate_func)(struct Curl_easy *data);
|
||||||
|
|
||||||
static void Curl_init_completed(struct Curl_easy *data)
|
static void init_completed(struct Curl_easy *data)
|
||||||
{
|
{
|
||||||
/* this is a completed transfer */
|
/* this is a completed transfer */
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ static void mstate(struct Curl_easy *data, CURLMstate state
|
|||||||
NULL, /* PERFORM */
|
NULL, /* PERFORM */
|
||||||
NULL, /* TOOFAST */
|
NULL, /* TOOFAST */
|
||||||
NULL, /* DONE */
|
NULL, /* DONE */
|
||||||
Curl_init_completed, /* COMPLETED */
|
init_completed, /* COMPLETED */
|
||||||
NULL /* MSGSENT */
|
NULL /* MSGSENT */
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1067,7 +1067,7 @@ CURLMcode curl_multi_fdset(struct Curl_multi *multi,
|
|||||||
|
|
||||||
#define NUM_POLLS_ON_STACK 10
|
#define NUM_POLLS_ON_STACK 10
|
||||||
|
|
||||||
static CURLMcode Curl_multi_wait(struct Curl_multi *multi,
|
static CURLMcode multi_wait(struct Curl_multi *multi,
|
||||||
struct curl_waitfd extra_fds[],
|
struct curl_waitfd extra_fds[],
|
||||||
unsigned int extra_nfds,
|
unsigned int extra_nfds,
|
||||||
int timeout_ms,
|
int timeout_ms,
|
||||||
@ -1281,7 +1281,7 @@ CURLMcode curl_multi_wait(struct Curl_multi *multi,
|
|||||||
int timeout_ms,
|
int timeout_ms,
|
||||||
int *ret)
|
int *ret)
|
||||||
{
|
{
|
||||||
return Curl_multi_wait(multi, extra_fds, extra_nfds, timeout_ms, ret, FALSE,
|
return multi_wait(multi, extra_fds, extra_nfds, timeout_ms, ret, FALSE,
|
||||||
FALSE);
|
FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1291,7 +1291,7 @@ CURLMcode curl_multi_poll(struct Curl_multi *multi,
|
|||||||
int timeout_ms,
|
int timeout_ms,
|
||||||
int *ret)
|
int *ret)
|
||||||
{
|
{
|
||||||
return Curl_multi_wait(multi, extra_fds, extra_nfds, timeout_ms, ret, TRUE,
|
return multi_wait(multi, extra_fds, extra_nfds, timeout_ms, ret, TRUE,
|
||||||
TRUE);
|
TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1319,7 +1319,7 @@ CURLMcode curl_multi_wakeup(struct Curl_multi *multi)
|
|||||||
|
|
||||||
The write socket is set to non-blocking, this way this function
|
The write socket is set to non-blocking, this way this function
|
||||||
cannot block, making it safe to call even from the same thread
|
cannot block, making it safe to call even from the same thread
|
||||||
that will call Curl_multi_wait(). If swrite() returns that it
|
that will call curl_multi_wait(). If swrite() returns that it
|
||||||
would block, it's considered successful because it means that
|
would block, it's considered successful because it means that
|
||||||
previous calls to this function will wake up the poll(). */
|
previous calls to this function will wake up the poll(). */
|
||||||
if(swrite(multi->wakeup_pair[1], buf, sizeof(buf)) < 0) {
|
if(swrite(multi->wakeup_pair[1], buf, sizeof(buf)) < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user