summarylogtreecommitdiffstats
path: root/size-t.patch
diff options
context:
space:
mode:
Diffstat (limited to 'size-t.patch')
-rw-r--r--size-t.patch51
1 files changed, 0 insertions, 51 deletions
diff --git a/size-t.patch b/size-t.patch
deleted file mode 100644
index 04ac8a2d6b69..000000000000
--- a/size-t.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-diff --git a/src/legacy_http.c b/src/legacy_http.c
-index 7c67a84..5b947c4 100644
---- a/src/legacy_http.c
-+++ b/src/legacy_http.c
-@@ -74,8 +74,8 @@ struct http_file
- } handle;
-
- char *buffer;
-- uint64_t buffer_len;
-- uint64_t buffer_pos;
-+ size_t buffer_len;
-+ size_t buffer_pos;
- int still_running;
- };
-
-@@ -340,7 +340,7 @@ static int fill_buffer(HTTP_FILE *file, size_t want, CURLM* multi_handle)
- *
- * Removes `want` bytes from the front of the buffer.
- */
--static int use_buffer(HTTP_FILE *file, uint64_t want)
-+static int use_buffer(HTTP_FILE *file, size_t want)
- {
- if(file->buffer_pos <= want){
- /* trash the buffer */
-@@ -509,7 +509,7 @@ static void buflwr(char *s) {
- int range_fetch_read_http_headers(struct range_fetch *rf) {
- char buf[512];
- int status;
-- uint64_t seen_location = 0;
-+ size_t seen_location = 0;
-
- { /* read status line */
- char *p;
-@@ -571,7 +571,7 @@ int range_fetch_read_http_headers(struct range_fetch *rf) {
- p += 2;
- buflwr(buf);
- { /* Remove the trailing \r\n from the value */
-- int len = strcspn(p, "\r\n");
-+ size_t len = strcspn(p, "\r\n");
- p[len] = 0;
- }
- /* buf is the header name (lower-cased), p the value */
-@@ -580,7 +580,7 @@ int range_fetch_read_http_headers(struct range_fetch *rf) {
- if (status == 206 && !strcmp(buf, "content-range")) {
- /* Okay, we're getting a non-MIME block from the remote. Get the
- * range and set our state appropriately */
-- uint64_t from, to;
-+ size_t from, to;
- sscanf(p, "bytes " OFF_T_PF "-" OFF_T_PF "/", &from, &to);
- if (from <= to) {
- rf->block_left = to + 1 - from;