1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fix warnings and NetWare compile failure

client/mysql_upgrade.c:
  Fix NetWare problem - illegal cast of "const char*" to "char*"
  Fix warning, init "mystat" in  FILEINFO to NULL
  Fix warning, remove unused variable "i"
This commit is contained in:
unknown
2006-11-09 00:17:22 +01:00
parent b3e24bedd3
commit 0100c53f9d

View File

@@ -378,7 +378,7 @@ find_file(const char *name, const char *root, uint flags, char *result, size_t l
{ {
int ret; int ret;
va_list va; va_list va;
FILEINFO key= { name }; FILEINFO key= { (char*)name, NULL };
const char *subdir; const char *subdir;
char *cp; char *cp;
@@ -395,7 +395,6 @@ find_file(const char *name, const char *root, uint flags, char *result, size_t l
{ {
MY_DIR *dir; MY_DIR *dir;
FILEINFO *match; FILEINFO *match;
uint i;
char *cp1; char *cp1;
cp1= strnmov(cp + 1, subdir, len - (cp - result) - 1); cp1= strnmov(cp + 1, subdir, len - (cp - result) - 1);