projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f88ea59
)
CLEANUP: Reapply xalloc_cast.cocci
author
Tim Duesterhus
<tim@bastelstu.be>
Fri, 29 Mar 2024 17:21:52 +0000
(18:21 +0100)
committer
Willy 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
patch
|
blob
|
history
diff --git
a/src/cpuset.c
b/src/cpuset.c
index
82e350f
..
a20b81a
100644
(file)
--- 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;