BUILD: cli: fix build on Windows due to isalnum() implemented as a macro
authorWilly Tarreau <w@1wt.eu>
Wed, 3 May 2023 14:28:54 +0000 (16:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 3 May 2023 14:32:50 +0000 (16:32 +0200)
commitff508f12c6de47cdab3840ce7c11c6e1fcf10a71
tree2431b756261a92b7fdf7fb61e2373faee3409ba3
parenta415e895a93d2ca33abcc32d028e5e065fb38f7a
BUILD: cli: fix build on Windows due to isalnum() implemented as a macro

Commit 986798718 ("DEBUG: cli: add "debug dev task" to show/wake/expire/kill
tasks and tasklets") broke the build on windows due to this:

  src/debug.c:940:95: error: array subscript has type char [-Werror=char-subscripts]
    940 |  caller && may_access(caller) && may_access(caller->func) && isalnum(*caller->func) ? caller->func : "0",
        |                                                                      ^~~~~~~~~~~~~

It's classical on platforms which implement ctype.h as macros instead of
functions, let's cast it as uchar. No backport is needed.
src/debug.c