Fixed win32 compilation warnings

This commit is contained in:
Georgi Kodinov 2009-09-02 13:22:47 +03:00
parent f7fa5d5a02
commit 8f5b17f529
2 changed files with 3 additions and 1 deletions

View file

@ -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))
{

View file

@ -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;