diff options
Diffstat (limited to 'src/testcurl/test_callback.c')
-rw-r--r-- | src/testcurl/test_callback.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testcurl/test_callback.c b/src/testcurl/test_callback.c index 8b23ed02..49b11e36 100644 --- a/src/testcurl/test_callback.c +++ b/src/testcurl/test_callback.c | |||
@@ -47,7 +47,7 @@ called_twice (void *cls, uint64_t pos, char *buf, size_t max) | |||
47 | { | 47 | { |
48 | memcpy (buf, "test", 5); | 48 | memcpy (buf, "test", 5); |
49 | cls2->called = 1; | 49 | cls2->called = 1; |
50 | return strlen (buf); | 50 | return (ssize_t) strlen (buf); |
51 | } | 51 | } |
52 | if (cls2->called == 1) | 52 | if (cls2->called == 1) |
53 | { | 53 | { |
@@ -132,7 +132,7 @@ main (int argc, char **argv) | |||
132 | int running; | 132 | int running; |
133 | struct timeval tv; | 133 | struct timeval tv; |
134 | int extra; | 134 | int extra; |
135 | int port; | 135 | uint16_t port; |
136 | (void) argc; (void) argv; /* Unused. Silent compiler warning. */ | 136 | (void) argc; (void) argv; /* Unused. Silent compiler warning. */ |
137 | 137 | ||
138 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) | 138 | if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) |
@@ -157,7 +157,7 @@ main (int argc, char **argv) | |||
157 | { | 157 | { |
158 | MHD_stop_daemon (d); return 48; | 158 | MHD_stop_daemon (d); return 48; |
159 | } | 159 | } |
160 | port = (int) dinfo->port; | 160 | port = dinfo->port; |
161 | } | 161 | } |
162 | c = curl_easy_init (); | 162 | c = curl_easy_init (); |
163 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/"); | 163 | curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/"); |