mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 16:30:21 -05:00
MINOR: cfgparse: Add a cast to make gcc happier.
When calling calloc(), cast global.nbthread to unsigned int, so that gcc doesn't freak out, as it has no way of knowing global.nbthread can't be negative.
This commit is contained in:
parent
db64489aac
commit
dd1c8f1f72
1 changed files with 1 additions and 1 deletions
|
|
@ -3596,7 +3596,7 @@ out_uri_auth_compat:
|
|||
LIST_INIT(&toremove_connections[i]);
|
||||
}
|
||||
}
|
||||
newsrv->idle_orphan_conns = calloc(global.nbthread, sizeof(*newsrv->idle_orphan_conns));
|
||||
newsrv->idle_orphan_conns = calloc((unsigned int)global.nbthread, sizeof(*newsrv->idle_orphan_conns));
|
||||
if (!newsrv->idle_orphan_conns)
|
||||
goto err;
|
||||
for (i = 0; i < global.nbthread; i++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue