diff options
author | unknown <vva@genie.(none)> | 2002-11-19 18:26:53 +0400 |
---|---|---|
committer | unknown <vva@genie.(none)> | 2002-11-19 18:26:53 +0400 |
commit | 953f6c51fed3478cc3905d2ce15728e5c3e7f00c (patch) | |
tree | 6f25883717e7c6cfc40b292a86148e469567534c /client/completion_hash.h | |
parent | 0fb3b8d9abc3eb2e3072c2f8681099e7db0a256e (diff) | |
download | mariadb-git-953f6c51fed3478cc3905d2ce15728e5c3e7f00c.tar.gz |
upgrade readline to version 4.3
client/completion_hash.cc:
correct headers of functions for readline 4.3 (add const modifier to char*)
client/completion_hash.h:
correct headers of functions for readline 4.3 (add const modifier to char*)
client/mysql.cc:
correct functions for readline 4.3
Diffstat (limited to 'client/completion_hash.h')
-rw-r--r-- | client/completion_hash.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/completion_hash.h b/client/completion_hash.h index c0853fddfe7..2595a445c9d 100644 --- a/client/completion_hash.h +++ b/client/completion_hash.h @@ -43,14 +43,14 @@ typedef struct hashtable { uint nTableSize; uint initialized; MEM_ROOT mem_root; - uint(*pHashFunction) (char *arKey, uint nKeyLength); + uint(*pHashFunction) (const char *arKey, uint nKeyLength); Bucket **arBuckets; } HashTable; extern int completion_hash_init(HashTable *ht, uint nSize); extern int completion_hash_update(HashTable *ht, char *arKey, uint nKeyLength, char *str); extern int hash_exists(HashTable *ht, char *arKey); -extern Bucket *find_all_matches(HashTable *ht, char *str, uint length, uint *res_length); +extern Bucket *find_all_matches(HashTable *ht, const char *str, uint length, uint *res_length); extern Bucket *find_longest_match(HashTable *ht, char *str, uint length, uint *res_length); extern void add_word(HashTable *ht,char *str); extern void completion_hash_clean(HashTable *ht); |