summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bgpctl/irr_parser.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-11-22 15:15:16 +0000
committerderaadt <deraadt@openbsd.org>2013-11-22 15:15:16 +0000
commitdefc2139fc8929ac894ea7cc13adb551e3e584a8 (patch)
tree85ca87b58bedcfdb98355681c673036d74d51c93 /usr.sbin/bgpctl/irr_parser.c
parentRemove unused proc argument in in6_control(). (diff)
downloadwireguard-openbsd-defc2139fc8929ac894ea7cc13adb551e3e584a8.tar.xz
wireguard-openbsd-defc2139fc8929ac894ea7cc13adb551e3e584a8.zip
unsigned char casts where needed for for ctype.h
checked by florian
Diffstat (limited to 'usr.sbin/bgpctl/irr_parser.c')
-rw-r--r--usr.sbin/bgpctl/irr_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpctl/irr_parser.c b/usr.sbin/bgpctl/irr_parser.c
index 98bbdcefd7f..c61e0aa3520 100644
--- a/usr.sbin/bgpctl/irr_parser.c
+++ b/usr.sbin/bgpctl/irr_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: irr_parser.c,v 1.10 2012/06/30 08:14:07 sthen Exp $ */
+/* $OpenBSD: irr_parser.c,v 1.11 2013/11/22 15:15:16 deraadt Exp $ */
/*
* Copyright (c) 2007 Henning Brauer <henning@openbsd.org>
@@ -279,7 +279,7 @@ parse_policy(char *key, char *val)
goto ppoerr;
if (strlen(tok) < 3 ||
strncasecmp(tok, "AS", 2) ||
- !isdigit(tok[2]))
+ !isdigit((unsigned char)tok[2]))
errx(1, "peering spec \"%s\": format "
"error, AS expected", tok);
pi->peer_as = strtonum(tok + 2, 1, UINT_MAX,