1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

const in fastfind_search

(cherry picked from commit 3f508a9803d64ac87eea4dbf19f5a1ee36659b42)
This commit is contained in:
Kalle Olavi Niemitalo 2008-01-26 17:18:28 +02:00 committed by Kalle Olavi Niemitalo
parent 4c89e80c67
commit 2a1fb06d54
2 changed files with 4 additions and 2 deletions

@ -586,7 +586,8 @@ return_error:
} while (0)
void *
fastfind_search(struct fastfind_index *index, unsigned char *key, int key_len)
fastfind_search(struct fastfind_index *index,
const unsigned char *key, int key_len)
{
struct ff_node *current;
struct fastfind_info *info;

@ -46,7 +46,8 @@ struct fastfind_index *fastfind_index(struct fastfind_index *index, enum fastfin
/* The main reason of all that stuff is here. */
/* Search the index for @key with length @key_len using the
* @index' handle created with fastfind_index(). */
void *fastfind_search(struct fastfind_index *index, unsigned char *key, int key_len);
void *fastfind_search(struct fastfind_index *index,
const unsigned char *key, int key_len);
/* Fastfind cleanup. It frees the index given by the @fastfind_handle. */
/* Must be called once per list. */