]> git.pld-linux.org Git - packages/gnupg2.git/blame - gnupg-gcc.patch
- release 2
[packages/gnupg2.git] / gnupg-gcc.patch
CommitLineData
5e797301
PS
1http://lists.gnupg.org/pipermail/gnupg-devel/2008-April/024344.html
2
3Index: keyserver/gpgkeys_curl.c
4===================================================================
5--- keyserver/gpgkeys_curl.c (revision 4741)
6+++ keyserver/gpgkeys_curl.c (working copy)
7@@ -286,7 +286,7 @@
8
9 if(follow_redirects)
10 {
11- curl_easy_setopt(curl,CURLOPT_FOLLOWLOCATION,1);
12+ curl_easy_setopt(curl,CURLOPT_FOLLOWLOCATION,1L);
13 if(follow_redirects>0)
14 curl_easy_setopt(curl,CURLOPT_MAXREDIRS,follow_redirects);
15 }
16@@ -298,10 +298,10 @@
17 {
18 fprintf(console,"gpgkeys: curl version = %s\n",curl_version());
19 curl_easy_setopt(curl,CURLOPT_STDERR,console);
20- curl_easy_setopt(curl,CURLOPT_VERBOSE,1);
21+ curl_easy_setopt(curl,CURLOPT_VERBOSE,1L);
22 }
23
24- curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,opt->flags.check_cert);
25+ curl_easy_setopt(curl,CURLOPT_SSL_VERIFYPEER,(long)opt->flags.check_cert);
26 curl_easy_setopt(curl,CURLOPT_CAINFO,opt->ca_cert_file);
27
28 if(proxy)
29Index: keyserver/gpgkeys_hkp.c
30===================================================================
31--- keyserver/gpgkeys_hkp.c (revision 4741)
32+++ keyserver/gpgkeys_hkp.c (working copy)
33@@ -202,9 +202,9 @@
34 fprintf(console,"gpgkeys: HTTP URL is `%s'\n",request);
35
36 curl_easy_setopt(curl,CURLOPT_URL,request);
37- curl_easy_setopt(curl,CURLOPT_POST,1);
38+ curl_easy_setopt(curl,CURLOPT_POST,1L);
39 curl_easy_setopt(curl,CURLOPT_POSTFIELDS,key);
40- curl_easy_setopt(curl,CURLOPT_FAILONERROR,1);
41+ curl_easy_setopt(curl,CURLOPT_FAILONERROR,1L);
42
43 res=curl_easy_perform(curl);
44 if(res!=0)
45@@ -661,7 +661,7 @@
46 {
47 fprintf(console,"gpgkeys: curl version = %s\n",curl_version());
48 curl_easy_setopt(curl,CURLOPT_STDERR,console);
49- curl_easy_setopt(curl,CURLOPT_VERBOSE,1);
50+ curl_easy_setopt(curl,CURLOPT_VERBOSE,1L);
51 }
52
53 if(proxy)
This page took 0.051929 seconds and 4 git commands to generate.