Skip to content

Commit 5ae3d8c

Browse files
committed
Use correct types for curl functions
The type for these literal should be long, not int. Caught by a compiler warning.
1 parent 343e011 commit 5ae3d8c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

regress/test-digest-auth-int-bad.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ parent0(CURL *curl)
3636

3737
curl_easy_setopt(curl, CURLOPT_URL,
3838
"http://localhost:17123/plain.txt");
39-
curl_easy_setopt(curl, CURLOPT_POST, 1);
39+
curl_easy_setopt(curl, CURLOPT_POST, 1L);
4040
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, body);
4141
list = curl_slist_append(list,
4242
"Authorization: Digest username=\"admin\","
@@ -65,7 +65,7 @@ parent1(CURL *curl)
6565

6666
curl_easy_setopt(curl, CURLOPT_URL,
6767
"http://localhost:17123/plain.txt");
68-
curl_easy_setopt(curl, CURLOPT_POST, 1);
68+
curl_easy_setopt(curl, CURLOPT_POST, 1L);
6969
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, body);
7070
list = curl_slist_append(list,
7171
"Authorization: Digest username=\"admin\","

regress/test-digest-auth-int.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ parent3(CURL *curl)
3636

3737
curl_easy_setopt(curl, CURLOPT_URL,
3838
"http://localhost:17123/plain.txt");
39-
curl_easy_setopt(curl, CURLOPT_POST, 1);
39+
curl_easy_setopt(curl, CURLOPT_POST, 1L);
4040
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, body);
4141
list = curl_slist_append(list,
4242
"Authorization: Digest username=\"admin\","
@@ -65,7 +65,7 @@ parent2(CURL *curl)
6565

6666
curl_easy_setopt(curl, CURLOPT_URL,
6767
"http://localhost:17123/plain.txt");
68-
curl_easy_setopt(curl, CURLOPT_POST, 1);
68+
curl_easy_setopt(curl, CURLOPT_POST, 1L);
6969
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, body);
7070
list = curl_slist_append(list,
7171
"Authorization: Digest username=\"admin\","
@@ -94,7 +94,7 @@ parent1(CURL *curl)
9494

9595
curl_easy_setopt(curl, CURLOPT_URL,
9696
"http://localhost:17123/plain.txt");
97-
curl_easy_setopt(curl, CURLOPT_POST, 1);
97+
curl_easy_setopt(curl, CURLOPT_POST, 1L);
9898
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, body);
9999
list = curl_slist_append(list,
100100
"Authorization: Digest username=\"admin\","

0 commit comments

Comments
 (0)