Fix: tap array subscript has type char warning
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 10 Apr 2020 12:30:54 +0000 (08:30 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 10 Apr 2020 12:33:46 +0000 (08:33 -0400)
commite47125e0384ad3a37bdd67bf92af66a68b05bccd
tree3e3b2915628b03f2a803c380f1c91b407baec3af
parent1f616fb07fd4e86f35e471fd74074ab6fa96b4ea
Fix: tap array subscript has type char warning

On architectures where "char" is signed, it should be cast to unsigned
char before being passed as parameter to isdigit or isspace. Based on
their man page:

       These  functions  check  whether  c,  which  must  have the value of an
       unsigned char or EOF, falls into a certain character class according to
       the  specified  locale.

Passing a signed char as parameter is invalid if the values fall into
the negative range of the signed char.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/utils/tap.c
This page took 0.025466 seconds and 4 git commands to generate.