mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-02 02:02:03 +00: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
@ -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 New Issue
Block a user