From: mmcc Date: Sat, 24 Oct 2015 05:26:00 +0000 (+0000) Subject: Cast ctype function arguments to unsigned char. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=404d8ac4c0a2b55ba5f8c40695bfce7d8a3e4a52;p=openbsd Cast ctype function arguments to unsigned char. ok guenther@ --- diff --git a/lib/libpcap/inet.c b/lib/libpcap/inet.c index 05c2cf702e6..6d4955594f8 100644 --- a/lib/libpcap/inet.c +++ b/lib/libpcap/inet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet.c,v 1.20 2015/01/16 16:48:51 deraadt Exp $ */ +/* $OpenBSD: inet.c,v 1.21 2015/10/24 05:26:00 mmcc Exp $ */ /* * Copyright (c) 1994, 1995, 1996, 1997, 1998 @@ -140,7 +140,7 @@ pcap_lookupdev(errbuf) continue; if (ISLOOPBACK(ifa->ifa_name, ifa->ifa_flags)) continue; - for (cp = ifa->ifa_name; !isdigit(*cp); ++cp) + for (cp = ifa->ifa_name; !isdigit((unsigned char)*cp); ++cp) continue; n = atoi(cp); if (n < minunit) { @@ -224,7 +224,7 @@ pcap_lookupdev(errbuf) ISLOOPBACK(ifr.ifr_name, ifr.ifr_flags)) continue; - for (cp = ifrp->ifr_name; !isdigit(*cp); ++cp) + for (cp = ifrp->ifr_name; !isdigit((unsigned char)*cp); ++cp) continue; n = atoi(cp); if (n < minunit) {