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:
parent
4c89e80c67
commit
2a1fb06d54
@ -586,7 +586,8 @@ return_error:
|
|||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
void *
|
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 ff_node *current;
|
||||||
struct fastfind_info *info;
|
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. */
|
/* The main reason of all that stuff is here. */
|
||||||
/* Search the index for @key with length @key_len using the
|
/* Search the index for @key with length @key_len using the
|
||||||
* @index' handle created with fastfind_index(). */
|
* @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. */
|
/* Fastfind cleanup. It frees the index given by the @fastfind_handle. */
|
||||||
/* Must be called once per list. */
|
/* Must be called once per list. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user