summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgit-bruh <e817509a-8ee9-4332-b0ad-3a6bdf9ab63f@aleeas.com>2021-09-06 19:21:30 +0530
committerDaniel Stenberg <daniel@haxx.se>2021-09-06 16:16:52 +0200
commit033d15a6c56158c29d971a146156e87be9485623 (patch)
tree071a64c76b6d68e2701e30343bcfd3b398269eaa
parentdb50fc6e95816ec7d7641906d0006de125adfee8 (diff)
downloadcurl-033d15a6c56158c29d971a146156e87be9485623.tar.gz
examples/*hiperfifo.c: fix calloc arguments to match function proto
Closes #7678
-rw-r--r--docs/examples/ephiperfifo.c2
-rw-r--r--docs/examples/evhiperfifo.c2
-rw-r--r--docs/examples/hiperfifo.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/ephiperfifo.c b/docs/examples/ephiperfifo.c
index 66d633c93..97e1fb5f0 100644
--- a/docs/examples/ephiperfifo.c
+++ b/docs/examples/ephiperfifo.c
@@ -292,7 +292,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 = (SockInfo*)calloc(sizeof(SockInfo), 1);
+ SockInfo *fdp = (SockInfo*)calloc(1, sizeof(SockInfo));
fdp->global = g;
setsock(fdp, s, easy, action, g);
diff --git a/docs/examples/evhiperfifo.c b/docs/examples/evhiperfifo.c
index 95c64865f..956916e77 100644
--- a/docs/examples/evhiperfifo.c
+++ b/docs/examples/evhiperfifo.c
@@ -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);
diff --git a/docs/examples/hiperfifo.c b/docs/examples/hiperfifo.c
index d7d8725bf..6a41b309a 100644
--- a/docs/examples/hiperfifo.c
+++ b/docs/examples/hiperfifo.c
@@ -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);