mirror of
https://github.com/curl/curl.git
synced 2026-08-01 06:18:04 +03:00
llist: make it "struct Curl_llist"
As internal global names should use captical C. Closes #5906
This commit is contained in:
parent
8bdc4f8aee
commit
9b3f888a00
17 changed files with 102 additions and 102 deletions
24
lib/multi.c
24
lib/multi.c
|
|
@ -722,7 +722,7 @@ CURLMcode curl_multi_remove_handle(struct Curl_multi *multi,
|
|||
struct Curl_easy *easy = data;
|
||||
bool premature;
|
||||
bool easy_owns_conn;
|
||||
struct curl_llist_element *e;
|
||||
struct Curl_llist_element *e;
|
||||
|
||||
/* First, make some basic checks that the CURLM handle is a good handle */
|
||||
if(!GOOD_MULTI_HANDLE(multi))
|
||||
|
|
@ -2675,7 +2675,7 @@ CURLMsg *curl_multi_info_read(struct Curl_multi *multi, int *msgs_in_queue)
|
|||
!multi->in_callback &&
|
||||
Curl_llist_count(&multi->msglist)) {
|
||||
/* there is one or more messages in the list */
|
||||
struct curl_llist_element *e;
|
||||
struct Curl_llist_element *e;
|
||||
|
||||
/* extract the head of the list to return */
|
||||
e = multi->msglist.head;
|
||||
|
|
@ -2905,15 +2905,15 @@ static CURLMcode add_next_timeout(struct curltime now,
|
|||
struct Curl_easy *d)
|
||||
{
|
||||
struct curltime *tv = &d->state.expiretime;
|
||||
struct curl_llist *list = &d->state.timeoutlist;
|
||||
struct curl_llist_element *e;
|
||||
struct Curl_llist *list = &d->state.timeoutlist;
|
||||
struct Curl_llist_element *e;
|
||||
struct time_node *node = NULL;
|
||||
|
||||
/* move over the timeout list for this specific handle and remove all
|
||||
timeouts that are now passed tense and store the next pending
|
||||
timeout in *tv */
|
||||
for(e = list->head; e;) {
|
||||
struct curl_llist_element *n = e->next;
|
||||
struct Curl_llist_element *n = e->next;
|
||||
timediff_t diff;
|
||||
node = (struct time_node *)e->ptr;
|
||||
diff = Curl_timediff(node->time, now);
|
||||
|
|
@ -3267,8 +3267,8 @@ void Curl_update_timer(struct Curl_multi *multi)
|
|||
static void
|
||||
multi_deltimeout(struct Curl_easy *data, expire_id eid)
|
||||
{
|
||||
struct curl_llist_element *e;
|
||||
struct curl_llist *timeoutlist = &data->state.timeoutlist;
|
||||
struct Curl_llist_element *e;
|
||||
struct Curl_llist *timeoutlist = &data->state.timeoutlist;
|
||||
/* find and remove the specific node from the list */
|
||||
for(e = timeoutlist->head; e; e = e->next) {
|
||||
struct time_node *n = (struct time_node *)e->ptr;
|
||||
|
|
@ -3291,11 +3291,11 @@ multi_addtimeout(struct Curl_easy *data,
|
|||
struct curltime *stamp,
|
||||
expire_id eid)
|
||||
{
|
||||
struct curl_llist_element *e;
|
||||
struct Curl_llist_element *e;
|
||||
struct time_node *node;
|
||||
struct curl_llist_element *prev = NULL;
|
||||
struct Curl_llist_element *prev = NULL;
|
||||
size_t n;
|
||||
struct curl_llist *timeoutlist = &data->state.timeoutlist;
|
||||
struct Curl_llist *timeoutlist = &data->state.timeoutlist;
|
||||
|
||||
node = &data->state.expires[eid];
|
||||
|
||||
|
|
@ -3422,7 +3422,7 @@ void Curl_expire_clear(struct Curl_easy *data)
|
|||
if(nowp->tv_sec || nowp->tv_usec) {
|
||||
/* Since this is an cleared time, we must remove the previous entry from
|
||||
the splay tree */
|
||||
struct curl_llist *list = &data->state.timeoutlist;
|
||||
struct Curl_llist *list = &data->state.timeoutlist;
|
||||
int rc;
|
||||
|
||||
rc = Curl_splayremovebyaddr(multi->timetree,
|
||||
|
|
@ -3493,7 +3493,7 @@ void Curl_multiuse_state(struct connectdata *conn,
|
|||
|
||||
static void process_pending_handles(struct Curl_multi *multi)
|
||||
{
|
||||
struct curl_llist_element *e = multi->pending.head;
|
||||
struct Curl_llist_element *e = multi->pending.head;
|
||||
if(e) {
|
||||
struct Curl_easy *data = e->ptr;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue