summaryrefslogtreecommitdiff
path: root/mysys/queues.c
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-11-07 02:30:34 +0200
committerunknown <monty@hundin.mysql.fi>2001-11-07 02:30:34 +0200
commit1ed1ec4c84db6e14023e55fdc6aa471c58ce71c8 (patch)
tree467eb97b1693dd5b30f6e2b3a1e88241fad6228c /mysys/queues.c
parentd207a0c2f022d0a65e95cddf8a1dc957f0e0a34e (diff)
downloadmariadb-git-1ed1ec4c84db6e14023e55fdc6aa471c58ce71c8.tar.gz
Portability fix.
Fixed linking problem with InnoDB. BUILD/compile-alpha-cxx: Fix for using innodb acinclude.m4: Fix problem with linking mysqld after Heikkis last changes. client/mysql.cc: Fixed linking problem client/mysqlmanager-pwgen.c: Portability fix innobase/que/que0que.c: Removed some blanks myisam/ft_boolean_search.c: Portability fix myisam/sort.c: Portability fix mysys/queues.c: Portability fix strings/ctype-latin1_de.c: Portability fix tools/mysqlmanager.c: Portability fix
Diffstat (limited to 'mysys/queues.c')
-rw-r--r--mysys/queues.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mysys/queues.c b/mysys/queues.c
index 3deee86c23a..78da8a15842 100644
--- a/mysys/queues.c
+++ b/mysys/queues.c
@@ -170,14 +170,14 @@ void _downheap(register QUEUE *queue, uint idx)
static int queue_fix_cmp(QUEUE *queue, void *a, void *b)
{
return queue->compare(queue->first_cmp_arg,
- a+queue->offset_to_key,
- b+queue->offset_to_key);
+ (char*) a+queue->offset_to_key,
+ (char*) b+queue->offset_to_key);
}
/* Fix heap when every element was changed */
void queue_fix(QUEUE *queue)
{
qsort2(queue->root+1,queue->elements, sizeof(void *),
- (qsort2_cmp)queue_fix_cmp, queue);
+ (qsort2_cmp)queue_fix_cmp, queue);
}