summaryrefslogtreecommitdiff
path: root/usr.sbin/bind/lib
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bind/lib')
-rw-r--r--usr.sbin/bind/lib/dns/ttl.c2
-rw-r--r--usr.sbin/bind/lib/isc/string.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bind/lib/dns/ttl.c b/usr.sbin/bind/lib/dns/ttl.c
index 003703aad21..15178b81114 100644
--- a/usr.sbin/bind/lib/dns/ttl.c
+++ b/usr.sbin/bind/lib/dns/ttl.c
@@ -165,7 +165,7 @@ bind_ttl(isc_textregion_t *source, isc_uint32_t *ttl) {
isc_result_t result;
char *np = nbuf;
- while (*s != '\0' && isdigit((unsigned char)*s))
+ while (isdigit((unsigned char)*s))
*np++ = *s++;
*np++ = '\0';
INSIST(np - nbuf <= (int)sizeof(nbuf));
diff --git a/usr.sbin/bind/lib/isc/string.c b/usr.sbin/bind/lib/isc/string.c
index 00a47a0ffeb..d01af8ac755 100644
--- a/usr.sbin/bind/lib/isc/string.c
+++ b/usr.sbin/bind/lib/isc/string.c
@@ -38,7 +38,7 @@ isc_string_touint64(char *source, char **end, int base) {
return (0);
}
- while (*s != 0 && isascii(*s&0xff) && isspace(*s&0xff))
+ while (isascii(*s&0xff) && isspace(*s&0xff))
s++;
if (*s == '+' /* || *s == '-' */)
s++;