summaryrefslogtreecommitdiff
path: root/mysys/my_safehash.h
diff options
context:
space:
mode:
authorunknown <jani@hynda.mysql.fi>2007-07-02 20:45:15 +0300
committerunknown <jani@hynda.mysql.fi>2007-07-02 20:45:15 +0300
commit631ecaabea7336a8f28367c0d1c291f0433f7e88 (patch)
tree2eb68f1f6af5e60c4bcdd8fcfa7e14f3650de830 /mysys/my_safehash.h
parentcfdd73369c0c2d57908af8dc727de33567fe9e0b (diff)
downloadmariadb-git-631ecaabea7336a8f28367c0d1c291f0433f7e88.tar.gz
Merged with mysql-5.1 main tree.
BUILD/compile-pentium-debug-max: Added definition after macro was removed from main tree. This will be fixed back in main tree later.
Diffstat (limited to 'mysys/my_safehash.h')
-rw-r--r--mysys/my_safehash.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/mysys/my_safehash.h b/mysys/my_safehash.h
index 53845a5fec7..8a5856b6763 100644
--- a/mysys/my_safehash.h
+++ b/mysys/my_safehash.h
@@ -30,9 +30,9 @@
typedef struct st_safe_hash_entry
{
- byte *key;
+ uchar *key;
uint length;
- byte *data;
+ uchar *data;
struct st_safe_hash_entry *next, **prev;
} SAFE_HASH_ENTRY;
@@ -43,16 +43,16 @@ typedef struct st_safe_hash_with_default
rw_lock_t mutex;
#endif
HASH hash;
- byte *default_value;
+ uchar *default_value;
SAFE_HASH_ENTRY *root;
} SAFE_HASH;
my_bool safe_hash_init(SAFE_HASH *hash, uint elements,
- byte *default_value);
+ uchar *default_value);
void safe_hash_free(SAFE_HASH *hash);
-byte *safe_hash_search(SAFE_HASH *hash, const byte *key, uint length,
- byte *def);
-my_bool safe_hash_set(SAFE_HASH *hash, const byte *key, uint length,
- byte *data);
-void safe_hash_change(SAFE_HASH *hash, byte *old_data, byte *new_data);
+uchar *safe_hash_search(SAFE_HASH *hash, const uchar *key, uint length,
+ uchar *def);
+my_bool safe_hash_set(SAFE_HASH *hash, const uchar *key, uint length,
+ uchar *data);
+void safe_hash_change(SAFE_HASH *hash, uchar *old_data, uchar *new_data);