* libmisc/obscure.c: Compare characters to '\0', not NULL.

This commit is contained in:
nekral-guest 2008-09-06 15:59:28 +00:00
parent f34a638b38
commit 18b7c8d188
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/obscure.c: Compare characters to '\0', not NULL.
2008-09-06 Nicolas François <nicolas.francois@centraliens.net>
* lib/defines.h: Do not include <config.h>. This complicate

View File

@ -109,7 +109,7 @@ static int simple (unused const char *old, const char *new)
int size;
int i;
for (i = 0; NULL != new[i]; i++) {
for (i = 0; '\0' != new[i]; i++) {
if (isdigit (new[i])) {
digits = true;
} else if (isupper (new[i])) {
@ -151,7 +151,7 @@ static char *str_lower (char *string)
{
char *cp;
for (cp = string; NULL != *cp; cp++) {
for (cp = string; '\0' != *cp; cp++) {
*cp = tolower (*cp);
}
return string;