From 404d8ac4c0a2b55ba5f8c40695bfce7d8a3e4a52 Mon Sep 17 00:00:00 2001 From: mmcc Date: Sat, 24 Oct 2015 05:26:00 +0000 Subject: [PATCH] Cast ctype function arguments to unsigned char. ok guenther@ --- lib/libpcap/inet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.20.1