fixed compilation warnings

This commit is contained in:
Georgi Kodinov 2009-09-24 16:21:46 +03:00
parent 3df67bc294
commit 45c70a2ec5
2 changed files with 2 additions and 2 deletions

View file

@ -3113,7 +3113,7 @@ int key_cache_write(KEY_CACHE *keycache,
/* Used in the server. */
keycache->global_cache_write++;
keycache_pthread_mutex_unlock(&keycache->cache_lock);
if (my_pwrite(file, (uchar*) buff, read_length, filepos + offset,
if (my_pwrite(file, (byte*) buff, read_length, filepos + offset,
MYF(MY_NABP | MY_WAIT_IF_FULL)))
error=1;
keycache_pthread_mutex_lock(&keycache->cache_lock);

View file

@ -4201,7 +4201,7 @@ void Item_func_set_user_var::save_item_result(Item *item)
bool
Item_func_set_user_var::update()
{
bool res= NULL;
bool res= 0;
DBUG_ENTER("Item_func_set_user_var::update");
switch (cached_result_type) {