llist: make it "struct Curl_llist"

As internal global names should use captical C.

Closes #5906
This commit is contained in:
Daniel Stenberg 2020-09-02 12:06:20 +02:00
parent 8bdc4f8aee
commit 9b3f888a00
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
17 changed files with 102 additions and 102 deletions

View file

@ -23,11 +23,11 @@
#include "llist.h"
static struct curl_llist llist;
static struct Curl_llist llist;
static struct curl_llist llist_destination;
static struct Curl_llist llist_destination;
static void test_curl_llist_dtor(void *key, void *value)
static void test_Curl_llist_dtor(void *key, void *value)
{
/* used by the llist API, does nothing here */
(void)key;
@ -36,8 +36,8 @@ static void test_curl_llist_dtor(void *key, void *value)
static CURLcode unit_setup(void)
{
Curl_llist_init(&llist, test_curl_llist_dtor);
Curl_llist_init(&llist_destination, test_curl_llist_dtor);
Curl_llist_init(&llist, test_Curl_llist_dtor);
Curl_llist_init(&llist_destination, test_Curl_llist_dtor);
return CURLE_OK;
}
@ -50,14 +50,14 @@ UNITTEST_START
int unusedData_case1 = 1;
int unusedData_case2 = 2;
int unusedData_case3 = 3;
struct curl_llist_element case1_list;
struct curl_llist_element case2_list;
struct curl_llist_element case3_list;
struct curl_llist_element case4_list;
struct curl_llist_element *head;
struct curl_llist_element *element_next;
struct curl_llist_element *element_prev;
struct curl_llist_element *to_remove;
struct Curl_llist_element case1_list;
struct Curl_llist_element case2_list;
struct Curl_llist_element case3_list;
struct Curl_llist_element case4_list;
struct Curl_llist_element *head;
struct Curl_llist_element *element_next;
struct Curl_llist_element *element_prev;
struct Curl_llist_element *to_remove;
size_t llist_size = Curl_llist_count(&llist);
/**
@ -74,8 +74,8 @@ UNITTEST_START
fail_unless(llist.size == 0, "list initial size should be zero");
fail_unless(llist.head == NULL, "list head should initiate to NULL");
fail_unless(llist.tail == NULL, "list tail should intiate to NULL");
fail_unless(llist.dtor == test_curl_llist_dtor,
"list dtor should initiate to test_curl_llist_dtor");
fail_unless(llist.dtor == test_Curl_llist_dtor,
"list dtor should initiate to test_Curl_llist_dtor");
/**
* testing Curl_llist_insert_next