From: Willy Tarreau Date: Fri, 12 May 2023 02:40:06 +0000 (+0200) Subject: BUILD: debug: fix build issue on 32-bit platforms in "debug dev task" X-Git-Tag: v2.8-dev12~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94df1b57ee0e2f3df97c0348f52ea7c74d98e12a;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/debug.c b/src/debug.c index 8d87530cc6..67711e14b5 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;