]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: debug: fix build issue on 32-bit platforms in "debug dev task"
authorWilly Tarreau <w@1wt.eu>
Fri, 12 May 2023 02:40:06 +0000 (04:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 May 2023 02:40:06 +0000 (04:40 +0200)
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

index 8d87530cc631211dbe7caef70cbd896f2cb6c5e9..67711e14b50bf90631b23c0d4108f2c1ea3749c0 100644 (file)
@@ -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;