[Pkg-shadow-commits] r2352 - in upstream/trunk: . libmisc
nekral-guest at alioth.debian.org
nekral-guest at alioth.debian.org
Sat Sep 6 15:59:28 UTC 2008
Author: nekral-guest
Date: 2008-09-06 15:59:28 +0000 (Sat, 06 Sep 2008)
New Revision: 2352
Modified:
upstream/trunk/ChangeLog
upstream/trunk/libmisc/obscure.c
Log:
* libmisc/obscure.c: Compare characters to '\0', not NULL.
Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog 2008-09-06 15:58:23 UTC (rev 2351)
+++ upstream/trunk/ChangeLog 2008-09-06 15:59:28 UTC (rev 2352)
@@ -1,5 +1,9 @@
2008-09-06 Nicolas François <nicolas.francois at centraliens.net>
+ * libmisc/obscure.c: Compare characters to '\0', not NULL.
+
+2008-09-06 Nicolas François <nicolas.francois at centraliens.net>
+
* lib/defines.h: Do not include <config.h>. This complicate
undefining some configuration macros when the file is included
multiple times.
Modified: upstream/trunk/libmisc/obscure.c
===================================================================
--- upstream/trunk/libmisc/obscure.c 2008-09-06 15:58:23 UTC (rev 2351)
+++ upstream/trunk/libmisc/obscure.c 2008-09-06 15:59:28 UTC (rev 2352)
@@ -109,7 +109,7 @@
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 @@
{
char *cp;
- for (cp = string; NULL != *cp; cp++) {
+ for (cp = string; '\0' != *cp; cp++) {
*cp = tolower (*cp);
}
return string;
More information about the Pkg-shadow-commits
mailing list