[PATCH] bind-8.3.3 comparison between pointer and intger warnings

dean gaudet dgaudet-list-bind9-workers at arctic.org
Sat Jul 20 17:52:11 UTC 2002


a couple trivial gcc warning fixes.

thanks
-dean

diff -r -u bind-8.3.3/src/bin/named/ns_ctl.c bind-8.3.3.dg/src/bin/named/ns_ctl.c
--- bind-8.3.3/src/bin/named/ns_ctl.c	Mon Jun 24 00:11:07 2002
+++ bind-8.3.3.dg/src/bin/named/ns_ctl.c	Sat Jul 20 10:28:25 2002
@@ -1126,7 +1126,7 @@
 	 */
 	cp = saved_argv[pvt->argc++];
 	tp = pvt->text;
-	while (cp && *cp != NULL)
+	while (cp && *cp != '\0')
 		if (*cp == '%' || *cp == ' ' ||
 		    !isprint((unsigned char)*cp)) {
 			if (tp >= pvt->text + sizeof(pvt->text) - 4)
diff -r -u bind-8.3.3/src/bin/ndc/ndc.c bind-8.3.3.dg/src/bin/ndc/ndc.c
--- bind-8.3.3/src/bin/ndc/ndc.c	Mon Jun 24 00:28:55 2002
+++ bind-8.3.3.dg/src/bin/ndc/ndc.c	Sat Jul 20 10:30:23 2002
@@ -283,7 +283,7 @@
 	}
 	len = 0;
 	cp = msg + 4;
-	while (*cp != NULL) {
+	while (*cp != '\0') {
 		c = *cp;
 		if (c == '%') {
 			cp2 = strchr(hexdigits, cp[1]);
@@ -325,7 +325,7 @@
 	}
 	cp = msg + 4;
 	tp = argv->argv[i];
-	while (*cp != NULL) {
+	while (*cp != '\0') {
 		c = *cp;
 		if (c == '%') {
 			cp2 = strchr(hexdigits, cp[1]);



More information about the bind-workers mailing list