mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Fixed win32 compilation warnings
This commit is contained in:
parent
f7fa5d5a02
commit
8f5b17f529
2 changed files with 3 additions and 1 deletions
|
@ -76,7 +76,9 @@ end:
|
|||
int my_copystat(const char *from, const char *to, int MyFlags)
|
||||
{
|
||||
struct stat statbuf;
|
||||
#if !defined(__WIN__) && !defined(__NETWARE__)
|
||||
int res;
|
||||
#endif
|
||||
|
||||
if (stat((char*) from, &statbuf))
|
||||
{
|
||||
|
|
|
@ -117,7 +117,7 @@ static char* add_identifier(char *to_p, const char * end_p,
|
|||
*(to_p++)= '`';
|
||||
*(to_p++)= *(conv_name++);
|
||||
}
|
||||
else if (length < (end_p - to_p))
|
||||
else if (((long) length) < (end_p - to_p))
|
||||
{
|
||||
to_p= strnmov(to_p, conv_name, length);
|
||||
conv_name+= length;
|
||||
|
|
Loading…
Reference in a new issue