From: Tim Duesterhus Date: Fri, 29 Mar 2024 17:21:52 +0000 (+0100) Subject: CLEANUP: Reapply xalloc_cast.cocci X-Git-Tag: v3.0-dev7~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c317f4619eebce646ebe90b1697f2d5a288fba6;p=thirdparty%2Fhaproxy.git CLEANUP: Reapply xalloc_cast.cocci This reapplies xalloc_cast.cocci across the whole src/ tree. --- diff --git a/src/cpuset.c b/src/cpuset.c index 82e350f132..a20b81a25d 100644 --- a/src/cpuset.c +++ b/src/cpuset.c @@ -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;