From e63f7c6f556aef66ff81fb128605f9eadf1ddcd9 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 2 Feb 2000 00:58:15 +0000 Subject: [PATCH] lint --- bin/named/unix/os.c | 2 +- lib/lwres/getnameinfo.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/named/unix/os.c b/bin/named/unix/os.c index 5a576e4d63..1e8a257cc6 100644 --- a/bin/named/unix/os.c +++ b/bin/named/unix/os.c @@ -173,7 +173,7 @@ all_digits(const char *s) { if (*s == '\0') return (ISC_FALSE); while (*s != '\0') { - if (!isdigit(*s)) + if (!isdigit((*s)&0xff)) return (ISC_FALSE); s++; } diff --git a/lib/lwres/getnameinfo.c b/lib/lwres/getnameinfo.c index 0f99933839..23a39b8a3c 100644 --- a/lib/lwres/getnameinfo.c +++ b/lib/lwres/getnameinfo.c @@ -130,8 +130,9 @@ getnameinfo(const struct sockaddr *sa, size_t salen, char *host, break; default: - INSIST(port = 0); - INSIST(addr = NULL); + port = 0; + addr = NULL; + INSIST(0); } proto = (flags & NI_DGRAM) ? "udp" : "tcp";