Compiler warning fix

This commit is contained in:
Yang Tse
2006-09-12 23:51:01 +00:00
parent eee09e79e8
commit 733a184ce0
7 changed files with 26 additions and 20 deletions

View File

@@ -68,10 +68,10 @@ static bool safe_strequal(char* str1, char* str2)
{
if(str1 && str2)
/* both pointers point to something then compare them */
return strequal(str1, str2);
return (bool)(0 != strequal(str1, str2));
else
/* if both pointers are NULL then treat them as equal */
return (!str1 && !str2);
return (bool)(!str1 && !str2);
}
bool