fix warnings

This commit is contained in:
jsorg71 2009-08-20 21:17:29 +00:00
parent b836ece1f2
commit 18a5e7917d

View File

@ -948,7 +948,9 @@ g_random(char* data, int len)
} }
if (fd != -1) if (fd != -1)
{ {
read(fd, data, len); if (read(fd, data, len) != len)
{
}
close(fd); close(fd);
} }
#endif #endif
@ -1137,7 +1139,9 @@ g_get_current_dir(char* dirname, int maxlen)
GetCurrentDirectoryA(maxlen, dirname); GetCurrentDirectoryA(maxlen, dirname);
return 0; return 0;
#else #else
getcwd(dirname, maxlen); if (getcwd(dirname, maxlen) == 0)
{
}
return 0; return 0;
#endif #endif
} }