summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2015-04-10 09:14:30 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2015-04-21 10:18:17 +0200
commit52f02b47685bc823c4c75560175a27aab0bd6709 (patch)
tree81f7e0fd01fd10d4433d3f67a36eea0296df75e4 /isisd
parent60a4601e2270920958e221fbffd7b0743f498d3c (diff)
downloadquagga-52f02b47685bc823c4c75560175a27aab0bd6709.tar.bz2
quagga-52f02b47685bc823c4c75560175a27aab0bd6709.tar.xz
zebra, isisd: cast to unsigned char for ctypes
ctype.h macros take int as arguments, but expect arguments to be in unsigned char's range. Even though it probably works, this isn't correct on systems that have a signed char type. Cast explicitly. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_circuit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isisd/isis_circuit.c b/isisd/isis_circuit.c
index 4f7e2ce9..fdff819c 100644
--- a/isisd/isis_circuit.c
+++ b/isisd/isis_circuit.c
@@ -397,7 +397,7 @@ isis_circuit_id_gen (struct interface *ifp)
*/
for (i = 0; i < strlen (ifp->name); i++)
{
- if (isdigit(ifp->name[i]))
+ if (isdigit((unsigned char)ifp->name[i]))
{
if (start < 0)
{