CLEANUP: Reapply xalloc_cast.cocci

This reapplies xalloc_cast.cocci across the whole src/ tree.
This commit is contained in:
Tim Duesterhus 2024-03-29 18:21:52 +01:00 committed by Willy Tarreau
parent f88ea5949c
commit 7c317f4619

View File

@ -280,7 +280,7 @@ int cpu_map_configured(void)
static int cpuset_alloc(void) static int cpuset_alloc(void)
{ {
/* allocate the structures used to store CPU topology info */ /* 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) if (!cpu_map)
return 0; return 0;