diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2007-08-29 05:36:53 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2007-08-29 05:36:53 +0000 |
commit | 1b66c1da6c6cf6e33bedbc01c93f5d4c48de4e55 (patch) | |
tree | 05f46364bf954812b410a36ac545a830e886d31c /lib/hash.c | |
parent | 5cb2ee878c2ff013c03f642b4fac36e4eccd38e0 (diff) | |
download | curl-1b66c1da6c6cf6e33bedbc01c93f5d4c48de4e55.tar.gz |
Added lots of consts
Diffstat (limited to 'lib/hash.c')
-rw-r--r-- | lib/hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/hash.c b/lib/hash.c index ec4a759f8..c8b5f8b37 100644 --- a/lib/hash.c +++ b/lib/hash.c @@ -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) { |