Index: ns_addr.c
===================================================================
--- ns_addr.c	(revision 14689)
+++ ns_addr.c	(working copy)
@@ -79,7 +79,7 @@
 		separator = '#';
 	else {
 		hostname = strchr(buf, '.');
-		if ((cp = strchr(buf, ':')) &&
+		if ((cp = strchr(buf, ':'))!=0 &&
 		    ((hostname && cp < hostname) || (hostname == 0))) {
 			hostname = cp;
 			separator = ':';
Index: res_mkupdate.c
===================================================================
--- res_mkupdate.c	(revision 14689)
+++ res_mkupdate.c	(working copy)
@@ -429,7 +429,7 @@
          u_int class, u_int type, u_long ttl) {
     ns_updrec *rrecp = (ns_updrec *)calloc(1, sizeof(ns_updrec));
 
-    if (!rrecp || !(rrecp->r_dname = strdup(dname)))
+    if (!rrecp || (rrecp->r_dname = strdup(dname))==0)
         return (NULL);
     rrecp->r_class = (u_int16_t)class;
     rrecp->r_type = (u_int16_t)type;
