mirror of
https://github.com/curl/curl.git
synced 2026-04-14 23:01:41 +03:00
examples/*hiperfifo.c: fix calloc arguments to match function proto
Closes #7678
This commit is contained in:
parent
db50fc6e95
commit
033d15a6c5
3 changed files with 3 additions and 3 deletions
|
|
@ -266,7 +266,7 @@ static void setsock(SockInfo *f, curl_socket_t s, CURL *e, int act,
|
|||
/* Initialize a new SockInfo structure */
|
||||
static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
|
||||
{
|
||||
SockInfo *fdp = calloc(sizeof(SockInfo), 1);
|
||||
SockInfo *fdp = calloc(1, sizeof(SockInfo));
|
||||
|
||||
fdp->global = g;
|
||||
setsock(fdp, s, easy, action, g);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue