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:
Olivier Houchard 2019-02-26 18:48:01 +01:00 committed by Olivier Houchard
parent db64489aac
commit dd1c8f1f72

View File

@ -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++)