]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Reapply xalloc_cast.cocci
authorTim Duesterhus <tim@bastelstu.be>
Fri, 29 Mar 2024 17:21:52 +0000 (18:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Apr 2024 05:27:33 +0000 (07:27 +0200)
This reapplies xalloc_cast.cocci across the whole src/ tree.

src/cpuset.c

index 82e350f132801926fa71d01f77ef3a7834e30949..a20b81a25dfa64de8dff53961246576ddfbd2329 100644 (file)
@@ -280,7 +280,7 @@ int cpu_map_configured(void)
 static int cpuset_alloc(void)
 {
        /* allocate the structures used to store CPU topology info */
-       cpu_map = (struct cpu_map*)calloc(MAX_TGROUPS, sizeof(*cpu_map));
+       cpu_map = calloc(MAX_TGROUPS, sizeof(*cpu_map));
        if (!cpu_map)
                return 0;