Skip to content

Commit

Permalink
Fix https-client compilation on Windows.
Browse files Browse the repository at this point in the history
ssize_t is not defined. But using ssize_t for s in this context makes no
sense, since fread returns size_t.
  • Loading branch information
JoakimSoderberg committed Jan 22, 2014
1 parent d38d798 commit d7be788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample/https-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

// Get rid of OSX 10.7 and greater deprecation warnings.
#ifdef __clang__
#if defined(__APPLE__) && defined(__clang__)
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
#endif

Expand Down Expand Up @@ -390,7 +390,7 @@ main(int argc, char **argv)
* avoid needless copying. */
FILE * f = fopen(data_file, "rb");
char buf[1024];
ssize_t s;
size_t s;
size_t bytes = 0;

if (!f) {
Expand Down

0 comments on commit d7be788

Please sign in to comment.