diff options
Diffstat (limited to 'src/testcurl/test_digestauth2.c')
-rw-r--r-- | src/testcurl/test_digestauth2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/test_digestauth2.c b/src/testcurl/test_digestauth2.c index ab8d2b07..a1a2a700 100644 --- a/src/testcurl/test_digestauth2.c +++ b/src/testcurl/test_digestauth2.c | |||
@@ -1098,7 +1098,7 @@ ahc_echo (void *cls, | |||
1098 | * @param uri_num the number of URI, should be 0, 1 or 2 | 1098 | * @param uri_num the number of URI, should be 0, 1 or 2 |
1099 | */ | 1099 | */ |
1100 | static void | 1100 | static void |
1101 | setCURL_rq_path (CURL *c, unsigned int port, unsigned int uri_num) | 1101 | setCURL_rq_path (CURL *c, uint16_t port, unsigned int uri_num) |
1102 | { | 1102 | { |
1103 | const char *req_path; | 1103 | const char *req_path; |
1104 | char uri[512]; | 1104 | char uri[512]; |
@@ -1113,7 +1113,7 @@ setCURL_rq_path (CURL *c, unsigned int port, unsigned int uri_num) | |||
1113 | /* A workaround for some old libcurl versions, which ignore the specified | 1113 | /* A workaround for some old libcurl versions, which ignore the specified |
1114 | * port by CURLOPT_PORT when authorisation is used. */ | 1114 | * port by CURLOPT_PORT when authorisation is used. */ |
1115 | res = snprintf (uri, (sizeof(uri) / sizeof(uri[0])), | 1115 | res = snprintf (uri, (sizeof(uri) / sizeof(uri[0])), |
1116 | "http://127.0.0.1:%u%s", port, | 1116 | "http://127.0.0.1:%u%s", (unsigned int) port, |
1117 | req_path); | 1117 | req_path); |
1118 | if ((0 >= res) || ((sizeof(uri) / sizeof(uri[0])) <= (size_t) res)) | 1118 | if ((0 >= res) || ((sizeof(uri) / sizeof(uri[0])) <= (size_t) res)) |
1119 | externalErrorExitDesc ("Cannot form request URL"); | 1119 | externalErrorExitDesc ("Cannot form request URL"); |
@@ -1124,7 +1124,7 @@ setCURL_rq_path (CURL *c, unsigned int port, unsigned int uri_num) | |||
1124 | 1124 | ||
1125 | 1125 | ||
1126 | static CURL * | 1126 | static CURL * |
1127 | setupCURL (void *cbc, unsigned int port) | 1127 | setupCURL (void *cbc, uint16_t port) |
1128 | { | 1128 | { |
1129 | CURL *c; | 1129 | CURL *c; |
1130 | 1130 | ||
@@ -1394,7 +1394,7 @@ testDigestAuth (void) | |||
1394 | cbc.size = sizeof (buf); | 1394 | cbc.size = sizeof (buf); |
1395 | cbc.pos = 0; | 1395 | cbc.pos = 0; |
1396 | memset (cbc.buf, 0, cbc.size); | 1396 | memset (cbc.buf, 0, cbc.size); |
1397 | c = setupCURL (&cbc, (unsigned int) port); | 1397 | c = setupCURL (&cbc, port); |
1398 | multi_reuse = NULL; | 1398 | multi_reuse = NULL; |
1399 | /* First request */ | 1399 | /* First request */ |
1400 | if (check_result (performQueryExternal (d, c, &multi_reuse), c, &cbc)) | 1400 | if (check_result (performQueryExternal (d, c, &multi_reuse), c, &cbc)) |