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:29 +0000 (08:33 -0400)
commitcec89bbacc3f12f4bb27cf810511fc3e8d725a64
treece7a09961440e94c997f6adc7d1fb041c9b9f9c8
parentef728ceea316503bdfd75c386512045fc8aa8285
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.029102 seconds and 4 git commands to generate.