From 94df1b57ee0e2f3df97c0348f52ea7c74d98e12a Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 12 May 2023 04:40:06 +0200 Subject: [PATCH] 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. --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index 8d87530cc..67711e14b 100644 --- a/src/debug.c +++ b/src/debug.c @@ -982,7 +982,7 @@ static int debug_parse_cli_task(char **args, char *payload, struct appctx *appct return 1; /* parse the pointer value */ - ptr = (void *)strtoll(args[3], &endarg, 0); + ptr = (void *)strtoul(args[3], &endarg, 0); if (!*args[3] || *endarg) goto usage;