mirror of
https://github.com/curl/curl.git
synced 2025-01-18 14:04:30 +08:00
examples/*hiperfifo.c: fix calloc arguments to match function proto
Closes #7678
This commit is contained in:
parent
db50fc6e95
commit
033d15a6c5
@ -292,7 +292,7 @@ static void setsock(SockInfo *f, curl_socket_t s, CURL *e, int act,
|
|||||||
/* Initialize a new SockInfo structure */
|
/* Initialize a new SockInfo structure */
|
||||||
static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
|
static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
|
||||||
{
|
{
|
||||||
SockInfo *fdp = (SockInfo*)calloc(sizeof(SockInfo), 1);
|
SockInfo *fdp = (SockInfo*)calloc(1, sizeof(SockInfo));
|
||||||
|
|
||||||
fdp->global = g;
|
fdp->global = g;
|
||||||
setsock(fdp, s, easy, action, g);
|
setsock(fdp, s, easy, action, g);
|
||||||
|
@ -266,7 +266,7 @@ static void setsock(SockInfo *f, curl_socket_t s, CURL *e, int act,
|
|||||||
/* Initialize a new SockInfo structure */
|
/* Initialize a new SockInfo structure */
|
||||||
static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
|
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;
|
fdp->global = g;
|
||||||
setsock(fdp, s, easy, action, g);
|
setsock(fdp, s, easy, action, g);
|
||||||
|
@ -266,7 +266,7 @@ static void setsock(SockInfo *f, curl_socket_t s, CURL *e, int act,
|
|||||||
/* Initialize a new SockInfo structure */
|
/* Initialize a new SockInfo structure */
|
||||||
static void addsock(curl_socket_t s, CURL *easy, int action, GlobalInfo *g)
|
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;
|
fdp->global = g;
|
||||||
setsock(fdp, s, easy, action, g);
|
setsock(fdp, s, easy, action, g);
|
||||||
|
Loading…
Reference in New Issue
Block a user