]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http_chunks: remove an assign + typecast
authorDaniel Stenberg <daniel@haxx.se>
Wed, 20 Jul 2022 09:05:50 +0000 (11:05 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 23 Jul 2022 11:38:36 +0000 (13:38 +0200)
As it caused icc to complain: "pointer cast involving 64-bit pointed-to
type"

Closes #9179

lib/http_chunks.c

index 2aeb7539397ac7e76f584244fc4643dabfedf3f2..290dbe8faa10610a609f8084ee3c3499c48e64e8 100644 (file)
@@ -100,7 +100,7 @@ void Curl_httpchunk_init(struct Curl_easy *data)
 CHUNKcode Curl_httpchunk_read(struct Curl_easy *data,
                               char *datap,
                               ssize_t datalen,
-                              ssize_t *wrotep,
+                              ssize_t *wrote,
                               CURLcode *extrap)
 {
   CURLcode result = CURLE_OK;
@@ -109,7 +109,6 @@ CHUNKcode Curl_httpchunk_read(struct Curl_easy *data,
   struct SingleRequest *k = &data->req;
   size_t piece;
   curl_off_t length = (curl_off_t)datalen;
-  size_t *wrote = (size_t *)wrotep;
 
   *wrote = 0; /* nothing's written yet */