summaryrefslogtreecommitdiff
path: root/lib/curl_range.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-01-20 09:29:45 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-01-20 14:59:11 +0100
commit56d1891db6d8056a70f1b7bf437b1ba387cbc079 (patch)
tree95b6ce456a0ee6d4774122779b570e3876ba9b31 /lib/curl_range.c
parentfb4c5d55b5f0fae834ffc1cc14006f4ed7f4af18 (diff)
downloadcurl-56d1891db6d8056a70f1b7bf437b1ba387cbc079.tar.gz
curl_range: remove conn->data
Closes #6496
Diffstat (limited to 'lib/curl_range.c')
-rw-r--r--lib/curl_range.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/curl_range.c b/lib/curl_range.c
index 0a87b1ca5..f7fb7c082 100644
--- a/lib/curl_range.c
+++ b/lib/curl_range.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -33,12 +33,11 @@
Check if this is a range download, and if so, set the internal variables
properly.
*/
-CURLcode Curl_range(struct connectdata *conn)
+CURLcode Curl_range(struct Curl_easy *data)
{
curl_off_t from, to;
char *ptr;
char *ptr2;
- struct Curl_easy *data = conn->data;
if(data->state.use_range && data->state.range) {
CURLofft from_t;