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:14 +0000 (08:33 -0400)
commit6526d8e9d01fd5831d3023f9389ff38d5cc7ea3f
tree03f7057bc5f7f660e3060cb0a393e665d2c96095
parentf26da412e5277f3eb75a578a7d26b38becf87573
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.025123 seconds and 4 git commands to generate.