summaryrefslogtreecommitdiff
path: root/mysys/testhash.c
diff options
context:
space:
mode:
authorunknown <hf@deer.(none)>2003-09-19 14:44:31 +0500
committerunknown <hf@deer.(none)>2003-09-19 14:44:31 +0500
commit2d46389ac88d4aad575f7210891c52d701bc8f16 (patch)
tree3c07a62a6ce161b611b85e52602cd8585ba0ad6d /mysys/testhash.c
parent6e92247842c5244be35f98e6347e472bf0b7175d (diff)
downloadmariadb-git-2d46389ac88d4aad575f7210891c52d701bc8f16.tar.gz
SCRUM
embedded library hash_insert renamed to my_hash_insert to avoid name intersection with another libraries is there better idea? client/mysqltest.c: hash_insert ->my_hash_insert include/hash.h: hash_insert ->my_hash_insert mysys/hash.c: hash_insert ->my_hash_insert mysys/testhash.c: hash_insert ->my_hash_insert sql/ha_berkeley.cc: hash_insert ->my_hash_insert sql/ha_innodb.cc: hash_insert ->my_hash_insert sql/hash_filo.h: hash_insert ->my_hash_insert sql/item_func.cc: hash_insert ->my_hash_insert sql/lock.cc: hash_insert ->my_hash_insert sql/repl_failsafe.cc: hash_insert ->my_hash_insert sql/set_var.cc: hash_insert ->my_hash_insert sql/slave.cc: hash_insert ->my_hash_insert sql/sql_acl.cc: hash_insert ->my_hash_insert sql/sql_base.cc: hash_insert ->my_hash_insert sql/sql_cache.cc: hash_insert ->my_hash_insert sql/sql_parse.cc: hash_insert ->my_hash_insert sql/sql_select.cc: hash_insert ->my_hash_insert sql/sql_udf.cc: hash_insert ->my_hash_insert sql/table.cc: hash_insert ->my_hash_insert tools/mysqlmanager.c: hash_insert ->my_hash_insert
Diffstat (limited to 'mysys/testhash.c')
-rw-r--r--mysys/testhash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/testhash.c b/mysys/testhash.c
index a1d14dc225d..72badffdbcd 100644
--- a/mysys/testhash.c
+++ b/mysys/testhash.c
@@ -83,7 +83,7 @@ static int do_test()
n1=rnd(1000); n2=rnd(100); n3=rnd(min(recant*5,MAX_RECORDS));
record= (char*) my_malloc(reclength,MYF(MY_FAE));
sprintf(record,"%6d:%4d:%8d:Pos: %4d ",n1,n2,n3,write_count);
- if (hash_insert(&hash,record))
+ if (my_hash_insert(&hash,record))
{
printf("Error: %d in write at record: %d\n",my_errno,i);
goto err;
@@ -199,7 +199,7 @@ static int do_test()
record=(byte*) my_malloc(reclength,MYF(MY_FAE));
memcpy(record,recpos,reclength);
record[reclength-1]=rnd(5)+1;
- if (hash_insert(&hash2,record))
+ if (my_hash_insert(&hash2,record))
{
printf("Got error when inserting record: %*s",reclength,record);
goto err;