summaryrefslogtreecommitdiff
path: root/sql/sql_db.cc
diff options
context:
space:
mode:
authorunknown <miguel@hegel.txg>2004-07-16 03:47:17 -0300
committerunknown <miguel@hegel.txg>2004-07-16 03:47:17 -0300
commit45cbab28f6363fe1cfa8228c22703d470c0f90f4 (patch)
tree279b9132a13ef3b7f72e2526cf48d4bfabc88c59 /sql/sql_db.cc
parentacdf855008a69cee6b2a9bce198d89a69c038073 (diff)
downloadmariadb-git-45cbab28f6363fe1cfa8228c22703d470c0f90f4.tar.gz
Fixes for bug #4571 (Windows compabilities)
sql/opt_range.cc: Fix for unreferenced local variable, cast and indirection to different types sql/sp_head.cc: Fix for unreferenced variables and cast sql/sql_acl.cc: Fix for unreferenced variable sql/sql_db.cc: Fix for unreferenced variable and cast sql/sql_insert.cc: Fix for cast and redifinition of variable declared i (VC++ bug) sql/sql_parse.cc: Fix for cast sql/sql_update.cc: Fix for cast
Diffstat (limited to 'sql/sql_db.cc')
-rw-r--r--sql/sql_db.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc
index 5a42c79efe9..a1ccfe8d22c 100644
--- a/sql/sql_db.cc
+++ b/sql/sql_db.cc
@@ -225,7 +225,7 @@ void del_dbopt(const char *path)
{
my_dbopt_t *opt;
rw_wrlock(&LOCK_dboptions);
- if ((opt= (my_dbopt_t *)hash_search(&dboptions, path, strlen(path))))
+ if ((opt= (my_dbopt_t *)hash_search(&dboptions, (byte*) path, strlen(path))))
hash_delete(&dboptions, (byte*) opt);
rw_unlock(&LOCK_dboptions);
}
@@ -549,7 +549,6 @@ int mysql_rm_db(THD *thd,char *db,bool if_exists, bool silent)
char path[FN_REFLEN+16], tmp_db[NAME_LEN+1];
MY_DIR *dirp;
uint length;
- my_dbopt_t *dbopt;
DBUG_ENTER("mysql_rm_db");
VOID(pthread_mutex_lock(&LOCK_mysql_create_db));