diff options
Diffstat (limited to 'usr.sbin/bind')
-rw-r--r-- | usr.sbin/bind/bin/nsupdate/nsupdate.c | 2 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/ttl.c | 2 | ||||
-rw-r--r-- | usr.sbin/bind/lib/isc/string.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bind/bin/nsupdate/nsupdate.c b/usr.sbin/bind/bin/nsupdate/nsupdate.c index 31add4a1a93..0247d15c66b 100644 --- a/usr.sbin/bind/bin/nsupdate/nsupdate.c +++ b/usr.sbin/bind/bin/nsupdate/nsupdate.c @@ -720,7 +720,7 @@ parse_rdata(char **cmdlinep, dns_rdataclass_t rdataclass, dns_rdatacallbacks_t callbacks; isc_result_t result; - while (*cmdline != 0 && isspace((unsigned char)*cmdline)) + while (isspace((unsigned char)*cmdline)) cmdline++; if (*cmdline != 0) { 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++; |