BUILD: ssl: only pass unsigned chars to isspace()
authorWilly Tarreau <w@1wt.eu>
Tue, 25 Feb 2020 06:51:59 +0000 (07:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Mar 2020 14:58:27 +0000 (16:58 +0200)
commitd884f7e4ec6d085577ba0040ef01036d5c34fed4
tree3bbab8656a69162e12f0dd2ed0f3fc32f7ee57ec
parentb86ed397118656f238b6f87be6c9eb701bbdb613
BUILD: ssl: only pass unsigned chars to isspace()

A build failure on cygwin was reported on github actions here:

  https://github.com/haproxy/haproxy/runs/466507874

It's caused by a signed char being passed to isspace(), and this one
being implemented as a macro instead of a function as the man page
suggests. It's the same issue that regularly pops up on Solaris. This
comes from commit 98263291cc3 which was merged in 1.8-dev1. A backport
is possible though not incredibly useful.

(cherry picked from commit ded15b75640d8f96929beefa3357cafbea25171e)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/ssl_sock.c