Loading tests/libtest/lib643.c +4 −4 Original line number Original line Diff line number Diff line Loading @@ -35,7 +35,7 @@ static char data[]= struct WriteThis { struct WriteThis { char *readptr; char *readptr; size_t sizeleft; curl_off_t sizeleft; }; }; static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp) static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp) Loading @@ -55,7 +55,7 @@ static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp) return 0; return 0; #ifndef LIB645 #ifndef LIB645 eof = !pooh->sizeleft; eof = pooh->sizeleft <= 0; if(!eof) if(!eof) pooh->sizeleft--; pooh->sizeleft--; #endif #endif Loading Loading @@ -83,7 +83,7 @@ static int once(char *URL, bool oldstyle) pooh.readptr = data; pooh.readptr = data; #ifndef LIB645 #ifndef LIB645 datasize = strlen(data); datasize = (curl_off_t)strlen(data); #endif #endif pooh.sizeleft = datasize; pooh.sizeleft = datasize; Loading Loading @@ -138,7 +138,7 @@ static int once(char *URL, bool oldstyle) pooh2.readptr = data; pooh2.readptr = data; #ifndef LIB645 #ifndef LIB645 datasize = strlen(data); datasize = (curl_off_t)strlen(data); #endif #endif pooh2.sizeleft = datasize; pooh2.sizeleft = datasize; Loading Loading
tests/libtest/lib643.c +4 −4 Original line number Original line Diff line number Diff line Loading @@ -35,7 +35,7 @@ static char data[]= struct WriteThis { struct WriteThis { char *readptr; char *readptr; size_t sizeleft; curl_off_t sizeleft; }; }; static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp) static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp) Loading @@ -55,7 +55,7 @@ static size_t read_callback(char *ptr, size_t size, size_t nmemb, void *userp) return 0; return 0; #ifndef LIB645 #ifndef LIB645 eof = !pooh->sizeleft; eof = pooh->sizeleft <= 0; if(!eof) if(!eof) pooh->sizeleft--; pooh->sizeleft--; #endif #endif Loading Loading @@ -83,7 +83,7 @@ static int once(char *URL, bool oldstyle) pooh.readptr = data; pooh.readptr = data; #ifndef LIB645 #ifndef LIB645 datasize = strlen(data); datasize = (curl_off_t)strlen(data); #endif #endif pooh.sizeleft = datasize; pooh.sizeleft = datasize; Loading Loading @@ -138,7 +138,7 @@ static int once(char *URL, bool oldstyle) pooh2.readptr = data; pooh2.readptr = data; #ifndef LIB645 #ifndef LIB645 datasize = strlen(data); datasize = (curl_off_t)strlen(data); #endif #endif pooh2.sizeleft = datasize; pooh2.sizeleft = datasize; Loading