1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Portability fix.

Fixed linking problem with InnoDB.
This commit is contained in:
monty@hundin.mysql.fi
2001-11-07 02:30:34 +02:00
parent f9a321af8a
commit 30209c1d66
10 changed files with 35 additions and 28 deletions

View File

@ -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);
}