mirror of
https://github.com/curl/curl.git
synced 2026-08-24 17:53:33 +03:00
Added lots of consts
This commit is contained in:
parent
5cb2ee878c
commit
1b66c1da6c
6 changed files with 29 additions and 28 deletions
|
|
@ -111,7 +111,7 @@ Curl_hash_alloc(int slots,
|
|||
|
||||
|
||||
static struct curl_hash_element *
|
||||
mk_hash_element(void *key, size_t key_len, const void *p)
|
||||
mk_hash_element(const void *key, size_t key_len, const void *p)
|
||||
{
|
||||
struct curl_hash_element *he =
|
||||
(struct curl_hash_element *) malloc(sizeof(struct curl_hash_element));
|
||||
|
|
@ -275,8 +275,8 @@ Curl_hash_destroy(struct curl_hash *h)
|
|||
|
||||
size_t Curl_hash_str(void* key, size_t key_length, size_t slots_num)
|
||||
{
|
||||
char* key_str = (char *) key;
|
||||
char *end = (char *) key_str + key_length;
|
||||
const char* key_str = (const char *) key;
|
||||
const char *end = key_str + key_length;
|
||||
unsigned long h = 5381;
|
||||
|
||||
while (key_str < end) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue