* curl-shim.c (curl_easy_setopt): Minor tweak to match the real curl
authorDavid Shaw <dshaw@jabberwocky.com>
Mon, 14 Apr 2008 16:08:00 +0000 (16:08 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Mon, 14 Apr 2008 16:08:00 +0000 (16:08 +0000)
better - libcurl uses 'long', not 'unsigned int'.

keyserver/ChangeLog
keyserver/curl-shim.c

index 3d4ecc1..8003b60 100644 (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
index 3e058c2..1b97e04 100644 (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 *);