BUILD: debug: fix build issue on 32-bit platforms in "debug dev task"

Commit 986798718 ("DEBUG: cli: add "debug dev task" to show/wake/expire/kill
tasks and tasklets") caused a build failure on 32-bit platforms when parsing
the task's pointer. Let's use strtoul() and not strtoll(). No backport is
needed, unless the commit above gets backported.
This commit is contained in:
Willy Tarreau 2023-05-12 04:40:06 +02:00
parent e279f595ad
commit 94df1b57ee

View File

@ -982,7 +982,7 @@ static int debug_parse_cli_task(char **args, char *payload, struct appctx *appct
return 1; return 1;
/* parse the pointer value */ /* parse the pointer value */
ptr = (void *)strtoll(args[3], &endarg, 0); ptr = (void *)strtoul(args[3], &endarg, 0);
if (!*args[3] || *endarg) if (!*args[3] || *endarg)
goto usage; goto usage;