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.cc | |
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.cc')
-rw-r--r-- | client/completion_hash.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/completion_hash.cc b/client/completion_hash.cc index ff5d0b28e41..536e7f9373a 100644 --- a/client/completion_hash.cc +++ b/client/completion_hash.cc @@ -27,7 +27,7 @@ #include <my_sys.h> #include "completion_hash.h" -uint hashpjw(char *arKey, uint nKeyLength) +uint hashpjw(const char *arKey, uint nKeyLength) { uint h = 0, g, i; @@ -111,7 +111,7 @@ int completion_hash_update(HashTable *ht, char *arKey, uint nKeyLength, return SUCCESS; } -static Bucket *completion_hash_find(HashTable *ht, char *arKey, +static Bucket *completion_hash_find(HashTable *ht, const char *arKey, uint nKeyLength) { uint h, nIndex; @@ -156,7 +156,7 @@ int completion_hash_exists(HashTable *ht, char *arKey, uint nKeyLength) return 0; } -Bucket *find_all_matches(HashTable *ht, char *str, uint length, +Bucket *find_all_matches(HashTable *ht, const char *str, uint length, uint *res_length) { Bucket *b; |