diff options
author | unknown <monty@mysql.com> | 2004-05-27 12:03:16 +0300 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-05-27 12:03:16 +0300 |
commit | 8e6d42097df6bd9374a2a04b5e85f08f0505b45c (patch) | |
tree | dee59cd39b752666039c5c3961bc42bbc5bf39f8 /myisam | |
parent | d26ba675140f67945ed2703dd249011ce7336664 (diff) | |
download | mariadb-git-8e6d42097df6bd9374a2a04b5e85f08f0505b45c.tar.gz |
Portability fixes
innobase/os/os0thread.c:
Portability fix
myisam/sort.c:
Fixed wrong variable type (gave compiler warning)
Diffstat (limited to 'myisam')
-rw-r--r-- | myisam/sort.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/myisam/sort.c b/myisam/sort.c index e28df1657a7..509365b89a5 100644 --- a/myisam/sort.c +++ b/myisam/sort.c @@ -852,7 +852,7 @@ merge_buffers(MI_SORT_PARAM *info, uint keys, IO_CACHE *from_file, uchar *strpos; BUFFPEK *buffpek,**refpek; QUEUE queue; - volatile bool *killed= killed_ptr(info->sort_info->param); + volatile my_bool *killed= killed_ptr(info->sort_info->param); DBUG_ENTER("merge_buffers"); count=error=0; @@ -873,7 +873,8 @@ merge_buffers(MI_SORT_PARAM *info, uint keys, IO_CACHE *from_file, count+= buffpek->count; buffpek->base= strpos; buffpek->max_keys=maxcount; - strpos+= (uint) (error=(int) info->read_to_buffer(from_file,buffpek,sort_length)); + strpos+= (uint) (error=(int) info->read_to_buffer(from_file,buffpek, + sort_length)); if (error == -1) goto err; /* purecov: inspected */ queue_insert(&queue,(char*) buffpek); @@ -890,7 +891,8 @@ merge_buffers(MI_SORT_PARAM *info, uint keys, IO_CACHE *from_file, buffpek=(BUFFPEK*) queue_top(&queue); if (to_file) { - if (info->write_key(info,to_file,(byte*) buffpek->key,(uint) sort_length,1)) + if (info->write_key(info,to_file,(byte*) buffpek->key, + (uint) sort_length,1)) { error=1; goto err; /* purecov: inspected */ } |