1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
Index: gpgkeys_curl.c
===================================================================
--- keyserver/gpgkeys_curl.c (revision 4741)
+++ keyserver/gpgkeys_curl.c (working copy)
@@ -286,7 +286,7 @@
if(follow_redirects)
{
- curl_easy_setopt(curl,CURLOPT_FOLLOWLOCATION,1);
+ curl_easy_setopt(curl,CURLOPT_FOLLOWLOCATION,1L);
if(follow_redirects>0)
curl_easy_setopt(curl,CURLOPT_MAXREDIRS,follow_redirects);
}
@@ -298,10 +298,10 @@
{
fprintf(console,"gpgkeys: curl version = %s\n",curl_version());
curl_easy_setopt(curl,CURLOPT_STDERR,console);
- curl_easy_setopt(curl,CURLOPT_VERBOSE,1);
+ curl_easy_setopt(curl,CURLOPT_VERBOSE,1L);
}
- curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,opt->flags.check_cert);
+ curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,(long)opt->flags.check_cert);
curl_easy_setopt(curl,CURLOPT_CAINFO,opt->ca_cert_file);
if(proxy)
Index: gpgkeys_hkp.c
===================================================================
--- keyserver/gpgkeys_hkp.c (revision 4741)
+++ keyserver/gpgkeys_hkp.c (working copy)
@@ -202,9 +202,9 @@
fprintf(console,"gpgkeys: HTTP URL is `%s'\n",request);
curl_easy_setopt(curl,CURLOPT_URL,request);
- curl_easy_setopt(curl,CURLOPT_POST,1);
+ curl_easy_setopt(curl,CURLOPT_POST,1L);
curl_easy_setopt(curl,CURLOPT_POSTFIELDS,key);
- curl_easy_setopt(curl,CURLOPT_FAILONERROR,1);
+ curl_easy_setopt(curl,CURLOPT_FAILONERROR,1L);
res=curl_easy_perform(curl);
if(res!=0)
@@ -661,7 +661,7 @@
{
fprintf(console,"gpgkeys: curl version = %s\n",curl_version());
curl_easy_setopt(curl,CURLOPT_STDERR,console);
- curl_easy_setopt(curl,CURLOPT_VERBOSE,1);
+ curl_easy_setopt(curl,CURLOPT_VERBOSE,1L);
}
if(proxy)
|