summaryrefslogtreecommitdiffstats
path: root/keyserver/curl-shim.c
diff options
context:
space:
mode:
authorDavid Shaw <dshaw@jabberwocky.com>2008-04-14 21:41:40 +0200
committerDavid Shaw <dshaw@jabberwocky.com>2008-04-14 21:41:40 +0200
commitc15eb48603a5a9a596068873a673f3b1ea98f202 (patch)
tree1fa2655c0e44ae8c6fa9b48cef37324d1f9ab0e6 /keyserver/curl-shim.c
parentEnhanced --auto-key-locate. (diff)
downloadgnupg2-c15eb48603a5a9a596068873a673f3b1ea98f202.tar.xz
gnupg2-c15eb48603a5a9a596068873a673f3b1ea98f202.zip
* gpgkeys_curl.c (main), gpgkeys_hkp.c (main): Make sure all libcurl
number options are passed as long. * curl-shim.c (curl_easy_setopt): Minor tweak to match the real curl better - libcurl uses 'long', not 'unsigned int'.
Diffstat (limited to 'keyserver/curl-shim.c')
-rw-r--r--keyserver/curl-shim.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/keyserver/curl-shim.c b/keyserver/curl-shim.c
index 085ed99c4..74b3f17e0 100644
--- a/keyserver/curl-shim.c
+++ b/keyserver/curl-shim.c
@@ -1,7 +1,7 @@
/* curl-shim.c - Implement a small subset of the curl API in terms of
* the iobuf HTTP API
*
- * Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+ * Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
@@ -134,16 +134,16 @@ curl_easy_setopt(CURL *curl,CURLoption option,...)
curl->proxy=va_arg(ap,char *);
break;
case CURLOPT_POST:
- curl->flags.post=va_arg(ap,unsigned int);
+ curl->flags.post=va_arg(ap,long)?1:0;
break;
case CURLOPT_POSTFIELDS:
curl->postfields=va_arg(ap,char *);
break;
case CURLOPT_FAILONERROR:
- curl->flags.failonerror=va_arg(ap,unsigned int);
+ curl->flags.failonerror=va_arg(ap,long)?1:0;
break;
case CURLOPT_VERBOSE:
- curl->flags.verbose=va_arg(ap,unsigned int);
+ curl->flags.verbose=va_arg(ap,long)?1:0;
break;
case CURLOPT_STDERR:
curl->errors=va_arg(ap,FILE *);