diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2007-03-20 03:34:33 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2007-03-20 03:34:33 +0000 |
commit | 94bab411a276ca02ad0192636b48b1d85de9573b (patch) | |
tree | 58dd312d251248411105caf58294fc8a94d15109 /usr.sbin/bind/lib | |
parent | be1f47e5ea2a0ac1fc58fdb575e2852d89844f68 (diff) |
remove some bogus *p tests from charles longeau
ok deraadt millert
Diffstat (limited to 'usr.sbin/bind/lib')
-rw-r--r-- | usr.sbin/bind/lib/dns/ttl.c | 2 | ||||
-rw-r--r-- | usr.sbin/bind/lib/isc/string.c | 2 |
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++; |