[GRASS-SVN] r40769 - grass/trunk/lib/sites

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 1 10:32:19 EST 2010


Author: glynn
Date: 2010-02-01 10:32:18 -0500 (Mon, 01 Feb 2010)
New Revision: 40769

Modified:
   grass/trunk/lib/sites/sites.c
Log:
Fix warning: (char)NULL => '\0'


Modified: grass/trunk/lib/sites/sites.c
===================================================================
--- grass/trunk/lib/sites/sites.c	2010-02-01 11:45:00 UTC (rev 40768)
+++ grass/trunk/lib/sites/sites.c	2010-02-01 15:32:18 UTC (rev 40769)
@@ -930,7 +930,7 @@
 	/* but we must skip over escaped */
 	/* (BSLASHed) DQUOTEs */
 	if (*p == DQUOTE) {
-	    while (*p != (char)NULL) {	/* get rid of first DQUOTE */
+	    while (*p != '\0') {	/* get rid of first DQUOTE */
 		*p = *(p + 1);
 		p++;
 	    }
@@ -944,8 +944,8 @@
     p = buf;
     while ((p = G_index(p, BSLASH)) != (char *)NULL && p <= stop) {
 	p2 = p + 1;
-	if (*p2 != (char)NULL && (*p2 == DQUOTE || *p2 == BSLASH)) {
-	    while (*p != (char)NULL) {
+	if (*p2 != '\0' && (*p2 == DQUOTE || *p2 == BSLASH)) {
+	    while (*p != '\0') {
 		*p = *(p + 1);
 		p++;
 	    }



More information about the grass-commit mailing list