1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-18 00:49:50 +02:00

* curl-shim.c (curl_easy_setopt): Minor tweak to match the real curl

better - libcurl uses 'long', not 'unsigned int'.
This commit is contained in:
David Shaw 2008-04-14 16:08:00 +00:00
parent 9fbb6f402c
commit b9cbb0aa0b
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2008-04-14 David Shaw <dshaw@jabberwocky.com>
* curl-shim.c (curl_easy_setopt): Minor tweak to match the real
curl better - libcurl uses 'long', not 'unsigned int'.
2008-03-25 Werner Koch <wk@g10code.com>
* gpgkeys_ldap.c (build_attrs): Take care of char defaulting to

View File

@ -129,16 +129,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 *);