[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 226/256: tests: fix a compiler warning in test 643
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 226/256: tests: fix a compiler warning in test 643 |
Date: |
Fri, 06 Oct 2017 19:45:17 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit b6a90bca335b08971371fbceeae694d970aebcb6
Author: Michael Kaufmann <address@hidden>
AuthorDate: Sat Sep 23 14:43:55 2017 +0200
tests: fix a compiler warning in test 643
---
tests/libtest/lib643.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/libtest/lib643.c b/tests/libtest/lib643.c
index c9d525bc2..e26a2515f 100644
--- a/tests/libtest/lib643.c
+++ b/tests/libtest/lib643.c
@@ -35,7 +35,7 @@ static char data[]=
struct WriteThis {
char *readptr;
- size_t sizeleft;
+ curl_off_t sizeleft;
};
static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp)
@@ -55,7 +55,7 @@ static size_t read_callback(char *ptr, size_t size, size_t
nmemb, void *userp)
return 0;
#ifndef LIB645
- eof = !pooh->sizeleft;
+ eof = pooh->sizeleft <= 0;
if(!eof)
pooh->sizeleft--;
#endif
@@ -83,7 +83,7 @@ static int once(char *URL, bool oldstyle)
pooh.readptr = data;
#ifndef LIB645
- datasize = strlen(data);
+ datasize = (curl_off_t)strlen(data);
#endif
pooh.sizeleft = datasize;
@@ -138,7 +138,7 @@ static int once(char *URL, bool oldstyle)
pooh2.readptr = data;
#ifndef LIB645
- datasize = strlen(data);
+ datasize = (curl_off_t)strlen(data);
#endif
pooh2.sizeleft = datasize;
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 250/256: proxy: read the "no_proxy" variable only if necessary, (continued)
- [GNUnet-SVN] [gnurl] 250/256: proxy: read the "no_proxy" variable only if necessary, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 191/256: URL: on connection re-use, still pick the new remote port, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 192/256: test1150: verify same host fetch using different ports over proxy, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 199/256: server/getpart: provide dummy function to build conversion enabled, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 230/256: RELEASE-NOTES: synced with d8ab5dc50, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 134/256: headers: move the global_sslset() proto from multi.h to curl.h, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 190/256: RELEASE-NOTES: synced with 87501e57f, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 252/256: idn: fix source code comment, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 135/256: lib: bump version info (soname). Adapt and reenable test 1135., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 193/256: tests: add initial gssapi test using stub implementation, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 226/256: tests: fix a compiler warning in test 643,
gnunet <=
- [GNUnet-SVN] [gnurl] 235/256: docs: link CURLOPT_CONNECTTIMEOUT and CURLOPT_CONNECTTIMEOUT_MS, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 227/256: file_range: avoid integer overflow when figuring out byte range, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 218/256: form/mime: field names are not allowed to contain zero-valued bytes., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 197/256: escape.c: error: pointer targets differ in signedness, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 243/256: TODO: remove deprecated form API items., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 187/256: code style: use space after semicolon, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 182/256: checksrc: verify spaces around equals signs, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 209/256: ossfuzz: changes before merging the generated corpora, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 255/256: RELEASE-NOTES: curl 7.56.0, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 232/256: reuse_conn: don't copy flags that are known to be equal, gnunet, 2017/10/06