1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00

const in fastfind_search

This commit is contained in:
Kalle Olavi Niemitalo 2008-01-26 17:18:28 +02:00 committed by Kalle Olavi Niemitalo
parent 721af4e749
commit 3f508a9803
2 changed files with 4 additions and 2 deletions

View File

@ -590,7 +590,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;

View File

@ -49,7 +49,8 @@ struct fastfind_index *fastfind_index(struct fastfind_index *index, enum fastfin
/** Search the index for @a key with length @a key_len using the
* @a index' handle created with fastfind_index().
* @relates 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 given @a index.
* Must be called once per list.